Users

You can use the Content Management API to retrieve the list of users who have logged into the Content Hub ONE system or to retrieve the first and last name of a specific user. You can use query attributes to control the set of items returned.

Note

The base URL when working with users is https://content-api.sitecorecloud.io/. For guidance on API syntax, see Syntax.

Get all users

Use this method to retrieve a list of the users who have logged into the Content Hub ONE instance. If you don't specify any filtering parameters, you will retrieve all available users.

RequestResponse
curl --location '<BASE_URL>/api/content/v1/users' \
--header 'Authorization: <BEARER_TOKEN>' \
--data '' 

Get a user using the ID

Use this method to enter the email address of a Content Hub ONE user and retrieve the associated first and last name. The email address is a unique identifier for the user. This request retrieves the first and last name of a specific Content Hub ONE user using the User ID.

RequestResponse
curl --location --request GET '<BASE_URL>/api/content/v1/users/[email protected] \
--header 'Authorization:  <BEARER_TOKEN>' \
--data '' 
RequestResponse
{
  "email": "[email protected]",
  "givenName": "Betty",
  "familyName": "Blue"
}

Do you have some feedback for us?

If you have suggestions for improving this article,