Clear-SPDistributedCacheItem无法正常工作 [英] Clear-SPDistributedCacheItem not working
问题描述
大家好,
我正在本地SharePoint 2016上工作.
将用户添加到广告组不会影响权限,除非我等待24小时……据我所知,这是一个方面的行为.
清除 DistributedLogonTokenCache应该可以使事情正常工作,但事实并非如此,我尝试运行此命令时没有任何运气:
解决方案
Add-PSSnapin Microsoft.SharePoint.PowerShell;
CS = [Microsoft.SharePoint.Administration.SPWebService] :: ContentService; #TokenTimeout值
CS.TokenTimeout;
Hi all,
I'm working on a SharePoint 2016 on premises environment.
Adding users to AD Groups doesn't affect permission unless I wait 24 hours... as far as I know this is the aspected behaviour.
Clearing DistributedLogonTokenCache should make things work but it doesn't, I've tried running this command without any luck:
Clear-SPDistributedCacheItem -ContainerType DistributedLogonTokenCacheThis is definetly not working, the only thing I can do is IISRESET or decresing token expration timeout.
Is there an easier way to do that?
解决方案Hi Maurizio Angeli,
SharePoint 2013/2016 Claim-based authentication using STS (security token service) to provide access tokens for server to server authentication. token life time is 10 hours by default and SharePoint cache the AD security details for 24 hours ( the default case you already talking about ). then you either wait until SharePoint do re-issue tokens using STS or execute power-script for reducing the token life time . the following script achieve your need .
Original Post ACTIVE DIRECTORY SECURITY GROUPS AND SHAREPOINT CLAIMS BASED AUTHENTICATION
Add-PSSnapin Microsoft.SharePoint.PowerShell;
CS = [Microsoft.SharePoint.Administration.SPWebService]::ContentService; #TokenTimeout value before
CS.TokenTimeout;
这篇关于Clear-SPDistributedCacheItem无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!