Search code examples
tridiontridion-2011

What is the property or method needed to get user group information?


After creating the new user object, how to get the group name of the particular user? Which property do I have to use? I have checked the userdata class, I didn't find any groupd details in there.

UserData user = (UserData)csClient.Read(usertcmid, readoption);

Solution

  • Updated code with information from Arjen

    UserData user = (UserData)csClient.Read(usertcmid, readoption);
    user.GroupMemberships() // returns GroupMembershipData enumeration