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}
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.
POST /controller/rest/users
{/code}
thanks!
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. 😞
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
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
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!
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
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 😞
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.
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
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. 😞