Authorization
Authorization
RequiredBearer <token>< Project ID >:< Management Key > as bearer
In: header
Request Body
application/json
RequiredloginId
stringSearch for specific login ID
tenantIds
array<string>If not empty then users must be members of at least one of these tenants
roleNames
array<string>If not empty then users must have one of the specified roles
limit
integerDefault is 100 if not specified
"int32"
text
stringFull text search across relevant columns
page
integerPage number starting with 0 for the first page
"int32"
ssoOnly
booleanBring only users that have SSO external IDs
false
withTestUser
booleanReturn also users which are test users
testUsersOnly
booleanReturn only test users
false
customAttributes
objectSearch for users with these custom attributes. Custom attributes filter should have string keys (attribute names that were configured for the user). Values should be either strings, ints or bools or lists (arrays) of strings, ints or bools for multiple matches.
statuses
array<string>If not empty then users must be in one of those statuses
emails
array<string>phones
array<string>ssoAppIds
array<string>sort
array<object>loginIds
array<string>fromCreatedTime
stringtoCreatedTime
stringfromModifiedTime
stringtoModifiedTime
stringuserIds
array<string>scimOnly
booleanBring only users that provisioned or updated by SCIM
OK
Get User Provider Token GET
### Get an existing user's provider token, using a valid management key. This API endpoint will loads the user's access token generated by the OAuth/OIDC provider, using a valid management key. When querying for OAuth providers, this only applies when utilizing your own account with the provider and have selected `Manage tokens from provider` selected under the [social auth methods](https://app.descope.com/settings/authentication/social). ### Query Params - `loginId` - The loginId of the user you want to get the provider token for. - `provider` - The provider you want to get the token for. - `withRefreshToken (optional)` - set to true to also return the refresh token. - `forceRefresh (optional)` - set to true to force a refresh of the token. ### See also - See [Manage Users](/manage/users) for further details on managing users. - See [The User Object](/api/overview#the-user-object) for further details on the user object. - See [Provider Options](/auth-methods/oauth#social-login-oauth-providers) for a the out of the box list of providers. ### Endpoint Authentication Use authorization bearer header with the following format: `Authorization: Bearer <ProjectId:ManagementKey>`
Get User's Login History POST
### Get an user's login history, using a valid management key. This API endpoint will loads the user's login history based on the user's userId. ### See also - See [Manage Users](/manage/users) for further details on managing users. - See [The User Object](/api/overview#the-user-object) for further details on the user object. ### Endpoint Authentication Use authorization bearer header with the following format: `Authorization: Bearer <ProjectId:ManagementKey>`