JXJ
Curtis Ruppe (MicroStaff IT) wrote: |
AD groups do not get imported into SharePoint. If they are being imported by some glitch, it would be because you have an LDAP query specified for your User Profiles that is including group information. Check your User Profile import query, or maybe I'm still not understanding your problem. | |
Someone correct me if I am wrong, but I don't think the above statement is correct.
AD groups do need to be imported into SharePoint user profiles if you plan on using them with Audiences. (And one very good reason to use them with Audiences is that is extremely tedious to create audiences that allow a specific list of users.)
If you want an example, go into AD and create a group, then immediately try to set up an Audience where the rule specifies "User" "Member Of" with the value of the group name. It will tell you "No exact match was found".
Then run a full profile import (for some reason, an incremental won't get it, at least not for me). Try setting up the Audience again - it will work.
(I also found this because I originally set up SharePoint to use a custom AD query when importing from AD so it only imported active users - SharePoint imports everything from AD - active and inactive users, which I think is insane. When I had it only importing active users, I could not set up any Audiences that used AD groups because my custom AD query only imported users. I had to change it to also import groups.)
I agree 100% with the original poster - the way groups work with Audences make no sense. If I create a site and want to set the permissions on the site by giving access to a AD group, I can specify that AD group at any time - it does not use User Profiles to find the group.
However, when I need to create an Audience, that group will not validate unless it has been imported into the User Profiles.
Now, I know Audiences are not for security - but that doesn't matter. It's not about using Audiences for security - the question is why SharePoint validates AD groups directly from AD when setting site permissions, but requires them to be imported into User Profiles to validate them in Audiences.
Can anyone explain why
I'd also like to know why I need to do a full import into User Profiles to get the groups to be recognized - why doesn't an incremental import work