cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not a customer? Start a free trial

Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.

AppDynamics customers and established members should click the sign in button to authenticate.

Controller (SaaS, On Premises)

how do i extract all users configured on controller

SOLVED
v-vshantarenka
Builder

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! 

By replying you agree to the Terms and Conditions of the AppDynamics Community.
how do i extract all users configured on controller
7 REPLIES 7
Yogesh.Chouk
AppDynamics Team

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.
v-vshantarenka
Builder

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!

v-vshantarenka
Builder

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 :( 

 

v-vshantarenka
Builder

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. :( 

sunil.vanmullem
Builder

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.

Yogesh.Chouk
AppDynamics Team

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.
Yogesh.Chouk
AppDynamics Team

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.