Skip to main content

user_authorized_clients

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

Overview

Nameuser_authorized_clients
TypeResource
Iddatadog.organization.user_authorized_clients

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier of the user authorized client. (example: 00000000-0000-0000-0000-000000000001)
attributesobjectAttributes of a user authorized client.
relationshipsobjectRelationships for a user authorized client.
typestringThe resource type for user authorized clients. (user_authorized_clients) (example: user_authorized_clients)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_user_authorized_clientselectuser_authorized_client_idGet a single OAuth2 client authorization for the current user.
list_user_authorized_clientsselectpage[size], page[number], filter, filter[disabled], includeGet a list of all OAuth2 clients authorized by the current user.
delete_user_authorized_clientdeleteuser_authorized_client_idDisable the current user's authorization for the specified OAuth2 client.

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
sitestringThe Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both.
user_authorized_client_idstringThe ID of the user authorized client.
filterstringFilter results by client name, app title, or app description.
filter[disabled]stringFilter results by the user-level disabled status.
includestringComma-separated list of related resources to include. Options: oauth2_client, oauth2_client.app.
page[number]integer (int64)Specific page number to return.
page[size]integer (int64)Number of items to return per page. The maximum allowed value is 100.

SELECT examples

Get a single OAuth2 client authorization for the current user.

SELECT
id,
attributes,
relationships,
type
FROM datadog.organization.user_authorized_clients
WHERE user_authorized_client_id = '{{ user_authorized_client_id }}' -- required
;

DELETE examples

Disable the current user's authorization for the specified OAuth2 client.

DELETE FROM datadog.organization.user_authorized_clients
WHERE user_authorized_client_id = '{{ user_authorized_client_id }}' --required
;