Skip to main content

Hello AP community.

 

I have a requirement to create 50+ control room accounts for Co-Pilot Business Users. Doing this manually will take some time and insanity will quickly set in. Does anyone have a bot they are willing to share that takes care of the entire account creation process? It needs to add the account to the control room, set the license parameter, add the roles, set the password and security questions/answers.

 

Thanks.

This can be done quite easily through the API. You need these calls:

  • v2/authenticate (to get the token for successive API calls)
  • v2/usermanagement/users (to create the user; roles are set at this step)
  • v2/authenticate (to get the token for the newly-created user)
  • v2/usermanagement/users/self/changePassword (to reset the password, set the security questions… note this is not a documented API call and can change at any time)

The format of the body for the last call is {“oldPassword”:”abc”,”password”:”def”,”questionsAnswers”:{“question”:”aaaaa”,”answer”:”bbbbb”},{“question”:”bbbbb”,”answer”:”ccccc”},{“question”:”ccccc”,”answer”:”ddddd”}],”token”:”abcdef”}


Reply