Hi,
I'm searching for a way to get all the Groups the CurrentUser belongs to.
I'm able to get the CurrentUser, but nog a fast and clean way to get his groups...
May I'm looking over something...
In the server object model we can use: SPWeb.CurrentUser.Groups or SPGroup.ContainsCurrentUser
Tnx in advance!
Vandeput
- Check the SPWeb.CurrentUser.Groups collection, which contains all of the groups that the current user is a member of
- Check the SPGroup.ContainsCurrentUser property, for a specific SPGroup object