create-user
Create new users in Descope projects by providing login credentials, contact information, roles, and tenant associations for user management.
Instructions
Create a new user in Descope project
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| loginId | Yes | Primary login identifier for the user | |
| additionalLoginIds | No | Additional login identifiers | |
| No | User's email address | ||
| verifiedEmail | No | Whether the email is pre-verified | |
| phone | No | User's phone number in E.164 format | |
| verifiedPhone | No | Whether the phone is pre-verified | |
| displayName | No | User's display name | |
| givenName | No | User's given/first name | |
| middleName | No | User's middle name | |
| familyName | No | User's family/last name | |
| picture | No | URL to user's profile picture | |
| roles | No | Global role names to assign to the user | |
| userTenants | No | Tenant associations with specific roles | |
| ssoAppIds | No | SSO application IDs to associate | |
| customAttributes | No | Custom attributes for the user |
Input Schema (JSON Schema)
{
"properties": {
"additionalLoginIds": {
"description": "Additional login identifiers",
"items": {
"type": "string"
},
"type": "array"
},
"customAttributes": {
"additionalProperties": {},
"description": "Custom attributes for the user",
"type": "object"
},
"displayName": {
"description": "User's display name",
"type": "string"
},
"email": {
"description": "User's email address",
"format": "email",
"type": "string"
},
"familyName": {
"description": "User's family/last name",
"type": "string"
},
"givenName": {
"description": "User's given/first name",
"type": "string"
},
"loginId": {
"description": "Primary login identifier for the user",
"type": "string"
},
"middleName": {
"description": "User's middle name",
"type": "string"
},
"phone": {
"description": "User's phone number in E.164 format",
"type": "string"
},
"picture": {
"description": "URL to user's profile picture",
"format": "uri",
"type": "string"
},
"roles": {
"description": "Global role names to assign to the user",
"items": {
"type": "string"
},
"type": "array"
},
"ssoAppIds": {
"description": "SSO application IDs to associate",
"items": {
"type": "string"
},
"type": "array"
},
"userTenants": {
"description": "Tenant associations with specific roles",
"items": {
"additionalProperties": false,
"properties": {
"roleNames": {
"items": {
"type": "string"
},
"type": "array"
},
"tenantId": {
"type": "string"
}
},
"required": [
"tenantId",
"roleNames"
],
"type": "object"
},
"type": "array"
},
"verifiedEmail": {
"description": "Whether the email is pre-verified",
"type": "boolean"
},
"verifiedPhone": {
"description": "Whether the phone is pre-verified",
"type": "boolean"
}
},
"required": [
"loginId"
],
"type": "object"
}