Developer forum

Forum » CMS - Standard features » AccessUserGroupRelation inside User loop

AccessUserGroupRelation inside User loop

NC
NC
Reply

Hi,

I need to show all the groups a user are included in. In DW9 we had the AccessUserGroups info in the AccessUser.
But with DW10 the Groups are moved.

We are showing users with Extranet app (UserManagement) and we need to show all the groups a user are included in, inside each user.

How to get the AccessUserGroupRelation inside User.

We hope some can help

Thanx in advance
NC


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

You can call this:

var userGroups = Dynamicweb.Security.UserManagement.UserManagementServices.UserGroups.GetGroupIdsByUserId(UserContext.Current.UserId)

 

You must be logged in to post in the forum