Important Update: Community URLs redirect issues are partially resolved. Learn More. .

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get all the user using REST Api in any group

AbhishekRai
Collaborator III

Hello Everyone,

 

Can anyone help me get all the users in any group by using REST API?

 

 

Any suggestion would be appreciated.

15 REPLIES 15

DavidPetty
Archer Employee
Archer Employee

Abhishek, try /api/core/system/groupmembership

 Advisory Consultant

Arun.Prasad
Advocate II

Abhishek,

 

Yes, you can get all the users belonging to a specific group through REST API. 

 

pastedImage_1.png

Thanks Arun, Do I need to declare anything in {Body}?

You don't have to mention anything in the request body.

pastedImage_1.png

 

On a separate note, make use of Jeff Letterman‌'s API toolbox to get better insights on all APIs.

https://community.rsa.com/docs/DOC-81721

Nothing in the {Body} is required.  The help text that Arun Prasad‌ posted, stated Request Body None.

 Advisory Consultant

Thanks Arun and David. Really appreciated!!

Anytime.

Hi Arun & David,

 

I am using below code:

 


$api_url = $base_url + "api/core/system/user/group/1"

$results = Invoke-RestMethod -Method POST -Uri $api_url -Headers $headersGET -ContentType "application/json"

 

 

and getting error:

 

Reason : WebApi:WebApiResourceNotFoundQueryReason
Severity : 3
MessageKey : WebApi:WebApiResourceNotFoundQuery
Description : The resource cannot be found.
Location : -1
ErroredValue :
Validator : ArcherApi.Controllers.System.UserGroupController, ArcherApi, Version=6.6.100.1041, Culture=neutral, PublicKeyToken=null
XmlData :
ResourcedMessage : No resource found.

 

 

Any suggestion?

Did you try some other group id? Group ID '1' belongs to Everyone group which can't be accessed.