Important Update: Archer Community Scheduled Maintenance on November 23–24 - New Community Launching Soon! Learn More..
2019-07-02 10:34 AM
Hello Everyone,
Can anyone help me get all the users in any group by using REST API?
Any suggestion would be appreciated.
2019-07-02 10:41 AM
Abhishek, try /api/core/system/groupmembership
Advisory Consultant
2019-07-02 10:43 AM
Abhishek,
Yes, you can get all the users belonging to a specific group through REST API.
2019-07-02 10:45 AM
Thanks Arun, Do I need to declare anything in {Body}?
2019-07-02 10:49 AM
You don't have to mention anything in the request body.
On a separate note, make use of Jeff Letterman's API toolbox to get better insights on all APIs.
2019-07-02 10:50 AM
Nothing in the {Body} is required. The help text that Arun Prasad posted, stated Request Body None.
Advisory Consultant
2019-07-02 10:51 AM
Thanks Arun and David. Really appreciated!!
2019-07-02 10:54 AM
Anytime.
2019-07-02 11:10 AM
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?
2019-07-02 11:15 AM
Did you try some other group id? Group ID '1' belongs to Everyone group which can't be accessed.