Get user list API

This API is used to get the list of all users available in the tenant and their respective roles.

This API is useful for clients' IT and Compliance teams to periodically audit and ensure that only authorized staff from their organization have access to Webex Campaign.

If a ‘username’ is provided in the API Request body, then the API will return information on that particular user and their user role. If no username is specified in the API Request body, then it will return information on all the users and their respective roles within their tenant.

📘

Know your endpoint

Based on the domain you use to log in to Webex Campaign, the endpoint domain for your API varies.

Go to the Postman Collection section to learn how to import a Postman collection. Click the below button, If you already know how to import a postman collection.

Run In Postman


Request Headers

The following table describes the request headers:

Request HeaderDescription
content-Typeapplication/json
authorizationAccess token or API Secret Key in Bearer format

Example: Bearer $(key)

Body Parameters

The following table describes the elements in the request body:

ParameterTypeMandatoryDescription
usernameStringConditionally MandatorySpecifies the username.
user_emailStringConditionally MandatorySpecifies the user's email id.

Request Example

Resource path: https://<client domain>/campaignapi/resources/v3/users/

or

https://<client domain>/campaignapi/resources/v3/users/?username=<username or email id>


//To get the details of all the users available under the tenant.
https://<client domain>/campaignapi/resources/v3/users/

// To get the details of a specific user available under the tenant.
https://<client domain>/campaignapi/resources/v3/users/?username=demouser

Response Parameters

This API will return the following response parameters:

ParameterDescription
usernameReturns the username.
user_emailReturns the user's email id.
display_nameReturns the user's display name.
role_idReturns the role id.
role_descReturns the role description.
user_statusReturns the user's status.
role_statusReturns the user's role status.
user_last_login_dateReturns the user's last login date.
user_groupsReturns the group names to which the user belongs to.
user_last_modified_dateReturns the user's last modified date.
user_idReturns the user id.
user_first_nameReturns the user's first name.
user_last_nameReturns the user's last name.
user_creation_dateReturns the date when the user was created.

Failure Response Codes

The API will return code within the response as per the following table in case of failure scenarios.

HTTP Status CodeCode within API ResponseDescription
2001010The request was not processed.
401430Authorization failed. This resource is not allowed to access using this TOKEN or KEY
498Invalid token or Access token expired
405405Method not supported
429429Too many requests. Throttle limit reached for the time window.
499499Request failed. Check the exact reason of failure in application code and description of error stream.
500500Internal server error
1001Invalid input JSON
1002Mandatory field missing
1003Error accessing profile store
Language