Skip to main content

user_clients

Creates, updates, deletes, gets or lists a user_clients resource.

Overview​

Nameuser_clients
TypeResource
Idokta.users.user_clients

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
client_idstringUnique key for the client application. The client_id is immutable. (example: 0oabskvc6442nkvQO0h7)
client_namestringHuman-readable string name of the client application (example: My App)
_linksobjectSpecifies link relations (see Web Linking) available using the JSON Hypertext Application Language specification. This object is used for dynamic discovery of related resources and lifecycle operations.
client_uristring (example: https://www.example.com)
logo_uristringURL string that references a logo for the client consent dialog (not the sign-in dialog) (example: https://www.example.com/logo.png)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_user_clientsselectuserId, subdomainLists all client resources for which the specified user has grants or tokens

> Note: To list all client resources for which a specified authorization server has tokens, use the List all client resources for an authorization server in the Authorization Servers API.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
subdomainstring(default: my-org)
userIdstringID of an existing Okta user

SELECT examples​

Lists all client resources for which the specified user has grants or tokens

> Note: To list all client resources for which a specified authorization server has tokens, use the List all client resources for an authorization server in the Authorization Servers API.

SELECT
client_id,
client_name,
_links,
client_uri,
logo_uri
FROM okta.users.user_clients
WHERE userId = '{{ userId }}' -- required
AND subdomain = '{{ subdomain }}' -- required
;