API to get identity info

Trying to do a search for a user/identity. Tried using https://{tenant}.api.identitynow.com/beta/accounts/{id} using the id returned from doing a search in the UI but no luck.

Not sure what Id it’s asking for . Also, isn’t it counterintuitive to have to query the id first just to use it in and API call (if thats indeed the right id in the first place)

Any help would be appreciated

https://{tenant}.api.identitynow.com/beta/accounts/{id} gets the details of an account on a specific source. We are working on an API to retrieve identity details, but it is not yet available. If you are trying to get information about an identity, then you will need to search identity data in the UI or the API.

For example, to search for an identity by name in the UI:

The same search via the v3 search API would be:

POST https://{tenant}.api.identitynow.com/v3/search
Body

{
  "indices": [
    "identities"
  ],
  "query": {
    "query": "colin.mckibben",
    "fields": [
      "name"
    ]
  }
}

In the response, the first id you see is the identity ID, which can’t be used to in the accounts API. If you want to get the details of a specific account this identity belongs to, you will need to use the id in the accounts list with the accounts API

Any updates on an API that can retrieve Identity data?

I am trying to find a way via API to see all access a user might have. Because we want to validate if a user has access before somebody request for access via ServiceNow.

Thanks

There is now a beta endpoint for getting an identity and its attributes, but it won’t return the access it has. get-identity | SailPoint Developer Community

If you want to see all access that an identity has, your best option is to use the search API. search-post | SailPoint Developer Community

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.