Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
10-05-2017 01:21 PM - edited 10-05-2017 01:23 PM
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!
Solved! Go to Solution.
10-08-2017 11:59 PM
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
10-09-2017 10:30 AM - edited 10-09-2017 10:40 AM
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!
10-09-2017 11:17 AM
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 :(
10-09-2017 02:53 PM
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. :(
05-09-2018 02:21 PM
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.
05-12-2018 02:54 AM
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
05-12-2018 02:56 AM
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
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form