Controller (SaaS, On Premise)

cancel
Showing results for 
Search instead for 
Did you mean: 

how do i extract all users configured on controller

SOLVED

how do i extract all users configured on controller

i saw the post from 2014 [https://community.appdynamics.com/t5/Archive/Extract-list-of-controller-user/m-p/12815]  that configuratino is not exposing users through rest API

 

controller/rest/configuration

 

just wondering is anything got changed? 

 

i can see also i can add user through rest api, but again hwo do i list all ofthem ? 

https://docs.appdynamics.com/display/PRO42/Configuration+API

{code}

Create and Modify AppDynamics Users

Creates or modifies user accounts in the Controller.

You pass the user configuration settings as query parameters to the API call. The format of the create and modify user calls are identical except for the user-id parameter, which is not passed for the create operation. The user-id is generated by the create operation. 

Format

POST /controller/rest/users

{/code}

 

thanks! 

how do i extract all users configured on controller
7 REPLIES 7
AppDynamics Team

Re: how do i extract all users configured on controller

Hi,

 

Could you please go through the below swagger api and let us know if it helps. You can extract the list of users from here. Attached screenshot for reference.

 

https://<controller_host>:<primary_port>/api-docs/index.html

Please refer below document for more information.

https://docs.appdynamics.com/display/PRO42/Access+Swagger+and+Accounts+API

 

Thanks,

Yogesh



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.

Re: how do i extract all users configured on controller

Hello Yogesh.chouk

 

Swagger doesn't work for my controller.

none of the links are actinable - could you please advice? 

 

Uncaught TypeError: Cannot read property 'getMockSignature' of undefined
at SwaggerOperation.getSignature (swagger.js:815)
at new SwaggerOperation (swagger.js:718)
at SwaggerResource.addOperations (swagger.js:496)
at SwaggerResource.addApiDeclaration (swagger.js:427)
at Object.response (swagger.js:376)
at Object.obj.complete (swagger.js:1400)
at k (jquery-1.8.0.min.js:2)
at Object.fireWith (jquery-1.8.0.min.js:2)
at y (jquery-1.8.0.min.js:2)
at XMLHttpRequest.d (jquery-1.8.0.min.js:2)

 

 

thanks!

Re: how do i extract all users configured on controller

so i got the redirection and used the direct SWAG json

 

api-docs/accounts.json

 

that works.

 

 but all API listed doesn't provide the possiblity to read all accounts. 

ANy API requires either specific single user ID.

 

so, there is no way to get all users list :( 

 

Re: how do i extract all users configured on controller

i was able to get the Users by searching teh AccountID

 

 NOTE HERE  -- Account ID is the number in the internal AppDynamics base that correlated to the  account name

 very very undescriptive. :( 

Re: how do i extract all users configured on controller

I doubt that. As if the appdynamics web app can list the users, there must be an Api, documented or not, that gets the details. I'll investigate and post back with what I find.

AppDynamics Team

Re: how do i extract all users configured on controller

Hi,

 

Can you please follow below documentation and let us know if that helps.

https://docs.appdynamics.com/display/PRO44/RBAC+API#RBACAPI-GetAllUsers

 

Thanks,

Yogesh



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.
AppDynamics Team

Re: how do i extract all users configured on controller

Hi 

 

Do you see any error while accessing the swagger api on the browser? Swagger API should work for all the controllers. Are you having admin rights on the controller?

 

Thanks

Yogesh



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.