Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Get all Groups of CurrentUser in Client object Model (ECMAScript)

$
0
0

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

Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>