cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Built-in API/service to get user and group both

TanmeyTWX
17-Peridot

Built-in API/service to get user and group both

Hi,

Is there any built-in method to fetch details of a User with its Group information.

We have methods like: GetMembers(), GetUsersInGroup(params),etc but none of them return table with columns of Users and corresponding Groups.


Case: I want to display Users list with their different groups asigned.Hence,its possible one User might belong to more than one Group.


But we get usual output like below.

Any comments on this?

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
qngo
5-Regular Member
(To:TanmeyTWX)

Hi,

You can loop through all users and call GetGroups() on each of them and create the table wanted.

View solution in original post

2 REPLIES 2
qngo
5-Regular Member
(To:TanmeyTWX)

Hi,

You can loop through all users and call GetGroups() on each of them and create the table wanted.

Wrong query posted. Not required to be resolved.

But Thanks Quang-Dung Ngo for the reply.

Top Tags