Get a user
get
https://{your_site_interface}/opa-hub/api/12.2.35/users/{user-name}
This operation will get a user.
Request
Path Parameters
-
user-name(required): string
The user identifier.
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
There's no request body for this operation.
Security
-
Authorization: apiKey
Type:
apiKey
Description: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:
oauth2
Description: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.
Root 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:
true
The connection which the user is linked to, if there is one, otherwise this property is not displayed. -
status: string
Default Value:
Enabled
Allowed Values:[ "Locked", "Disabled", "Enabled" ]
The user status. -
userName(required): string
The user identifier.
-
userType: string
Default Value:
User
Allowed 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:
array
An array of Administrator roles for this user.
Show Source
-
Array of:
string
Allowed Values:
[ "Permissions Administrator", "Connections Administrator" ]
Nested Schema : workspaces
Type:
array
The 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:
array
The 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" ]