Get all users
get
https://{your_site_interface}/opa-hub/api/12.2.40/users
This operation will get all users.
Request
Query Parameters
-
expand: string
Comma separated list of named resources to expand, or "all" to expand all
-
fields: string
Comma separated list of fields to be returned
-
links: string
Comma separated list of links to be returned, or "none" to omit links
-
q: string
A JSON object for filtering matching property values within the collection
There's no request body for this operation.
Security
-
Authorization: apiKey
Type:
apiKeyDescription:Obtain a bearer token from https://{your_site_interface}/opa-hub/api/12.2.17/auth and use it in the Authorization header as: Bearer {token}. -
oauth2_opa: oauth2
Type:
oauth2Description:POST the OAuth2 Client Credentials parameters to https://{your_site_interface}/opa-hub/api/12.2.17/auth and use the access token from the response in the Authorization header.
Response
Supported Media Types
- application/json
200 Response
The request was successfully completed.
Nested Schema : user
Type:
Show Source
object-
adminRoles: array
adminRoles
An array of Administrator roles for this user.
-
email: string
The user email address.
-
fullName: string
The user full name.
-
lastLogin: string
(date-time)
The last login of the user.
-
linkedConnection: string
Read Only:
trueThe connection which the user is linked to, if there is one, otherwise this property is not displayed. -
status: string
Default Value:
EnabledAllowed Values:[ "Locked", "Disabled", "Enabled" ]The user status. -
userName(required): string
The user identifier.
-
userType: string
Default Value:
UserAllowed Values:[ "User", "LocalAPIClient", "APIClient" ]The type of user. -
workspaces(required): array
workspaces
The list of workspaces that the user has roles in.
Nested Schema : adminRoles
Type:
arrayAn array of Administrator roles for this user.
Show Source
-
Array of:
string
Allowed Values:
[ "Permissions Administrator", "Connections Administrator" ]
Nested Schema : workspaces
Type:
arrayThe list of workspaces that the user has roles in.
Show Source
Nested Schema : userWorkspace
Type:
Show Source
object-
name: string
The name of the Workspace
-
roles: array
roles
The list of roles that the user has in the workspace.
Nested Schema : roles
Type:
arrayThe list of roles that the user has in the workspace.
Show Source
-
Array of:
string
Allowed Values:
[ "Deploy Admin", "Policy Author", "Determinations API", "Chat Service", "Viewer" ]