Deleting AD users using POSTMAN.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Deleting AD users using POSTMAN.

L3 Networker

Hi experts,

 

I have a case where I want to delete users lots of users on the privilege cloud/identity. let's assume I previously have 2000 license for users, and now only 500.

 

The support asked me to run these and not providing much helpful information after:

Running on the postman: 

https://{tenant_url}/Security/StartAuthentication

 https://{tenant_url}/Security/AdvanceAuthentication

 

Running from reports table:

SELECT

  ADUser.ObjectGUID,

  ADUser.UserPrincipalName

FROM

  ADUser

 

What exactly the data that I need to gather here? what to do on the postman part, and where can I run these SQL queries?

 

Does anyone has any idea/experience?

 

Thanks.

1 accepted solution

Accepted Solutions

L4 Transporter

This will produce a list of all the AD users, and their GUID+UPN. You could generate this as a report without resorting to REST APIs or Postman

 

  • Go to Identity Administration
  • Select Security Insights\Reports
  • Select My Reports
  • Click New Report
  • set the name (eg AD Users Report)
  • In the Data Dictionary page expand ADUser, and select ObjectGUI and DistinguishedName. In the Editor column you should now see a SQL statement that matches what you defined in your original question
  • Click Save
  • You should now see a list of your reports including the new one "AD Users Report". Select your new report
  • From the Actions menu choose "Export" and complete the Export wizard to create and download a CSV file

 

You can now share the CSV file with Support

View solution in original post

3 REPLIES 3

L4 Transporter

You need to first do the authentication as per - https://api-docs.cyberark.com/docs/identity-api-reference/authentication-and-authorization/operations/create-a-security-start-authentication

 

and then you can run remove users API. you can supply the list of users in it.

https://api-docs.cyberark.com/docs/identity-api-reference/user-management/operations/create-a-user-mgmt-remove-user

L4 Transporter

You need to first do the authentication as per - https://api-docs.cyberark.com/docs/identity-api-reference/authentication-and-authorization/operations/create-a-security-start-authentication

 

and then you can run remove users API. you can supply the list of users in it.

https://api-docs.cyberark.com/docs/identity-api-reference/user-management/operations/create-a-user-mgmt-remove-user

L4 Transporter

This will produce a list of all the AD users, and their GUID+UPN. You could generate this as a report without resorting to REST APIs or Postman

 

  • Go to Identity Administration
  • Select Security Insights\Reports
  • Select My Reports
  • Click New Report
  • set the name (eg AD Users Report)
  • In the Data Dictionary page expand ADUser, and select ObjectGUI and DistinguishedName. In the Editor column you should now see a SQL statement that matches what you defined in your original question
  • Click Save
  • You should now see a list of your reports including the new one "AD Users Report". Select your new report
  • From the Actions menu choose "Export" and complete the Export wizard to create and download a CSV file

 

You can now share the CSV file with Support

  • 1 accepted solution
  • 107 Views
  • 3 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!