0

Please help me.

In the organization , we have deployed SharePoint 2013 , to control access to sites decided through security group Active Directory.

Active Directory security groups are added to the site permissions programmatically.

SharePoint 2013 is not updated ( can not read part of the security group Active Directory) security group membership Active Directory, which have been added programmatically checking permissions through the site settings , shows that a new member of the security group no rights and delegated user can not go to the site .

Example:

In the security setting site has been added to the site security group Active Directory, but the members of this group do not get security access rights to the site until the site's security settings do not delete a security group Active Directory, and then add it again , but in the manual .

After removing the Active Directory security group of security settings site and then re-adding the same Active Directory security groups to the security settings on the same site by hand, members of the Active Directory security groups can access the site.

I searched the internet for similar problems, but all refer to the same solution:

$ sts = Get-SPSecurityTokenServiceConfig
$ sts.WindowsTokenLifetime = (New-Timespan-Minutes 5 ) <- default 1 hour
$ sts.LogonTokenCacheExpirationWindow = (New-Timespan-Minutes 2 ) <- default 10 mins
$ sts.Update ()
0

Friends, that's interesting! If you add groups Active Directory in Sharepoint via Powershell format Claim the script work correctly, but why?

$web = get-spweb "http://projects.rvsco.ru/M143"
 #$Groupfull="RVSCO\gf_sp_m143_participant"
 $Groupfull=" c:0+.w|s-1-5-21-3547894948-444176536-1024843340-6189"
 $account = $web.EnsureUser($Groupfull)
 $assignment = New-Object Microsoft.SharePoint.SPRoleAssignment($account)
 $perm="Contribute"
 $role = $web.RoleDefinitions[$perm]
 $assignment.RoleDefinitionBindings.Add($role)
 #$web.SiteGroups.Remove($Groupfull)
 $web.RoleAssignments.Add($assignment)
 $web.dispose()

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.