Splunk AppDynamics

how do i extract all users configured on controller

CommunityUser
Splunk Employee
Splunk Employee

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! 

Labels (3)
0 Karma
2 Solutions

CommunityUser
Splunk Employee
Splunk Employee

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. 😞 

View solution in original post

0 Karma

Yogesh_Chouk
Builder

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

View solution in original post

0 Karma

Yogesh_Chouk
Builder

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

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

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!

0 Karma

Yogesh_Chouk
Builder

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

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

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 😞 

0 Karma

open768
Path Finder

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.

0 Karma

Yogesh_Chouk
Builder

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

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

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. 😞 

0 Karma
Get Updates on the Splunk Community!

Why You Can't Miss .conf25: Unleashing the Power of Agentic AI with Splunk & Cisco

The Defining Technology Movement of Our Lifetime The advent of agentic AI is arguably the defining technology ...

Deep Dive into Federated Analytics: Unlocking the Full Power of Your Security Data

In today’s complex digital landscape, security teams face increasing pressure to protect sprawling data across ...

Your summer travels continue with new course releases

Summer in the Northern hemisphere is in full swing, and is often a time to travel and explore. If your summer ...