Docs
post https://console.iugu.com/provide_identity

Provision a temporary user identity

Creates a temporary user (TempUser) from an external identity provider so it can be authorized within a workspace. The target workspace comes from the Workspace header.

Sem ações implementadas definidas

Request

Headers

Workspace

Required

Type: string

The unique identifier of the workspace the identity belongs to.

Ex: 15b9b47f-d0fe-4d5a-afe1-f49d384869ba

Body Required

Content Type: application/json

name

Required

String

Ex: John Doe

email

Required

String

Ex: [email protected]

role_ids

Required

Array of strings

Ex: ["3dXBP3v36sZZKsfIhuTBec"]

locale

Required

String

Ex: pt-BR

provider_name

Required

String

Ex: okta

provider_id

Required

String

Ex: 00u1a2b3c4d5e6f7g8h9

provider_sub
String

Provider subject. Defaults to the generated id when omitted.

id
String

Optional identifier. A UUID is generated when omitted.

ttl
Integer

Time to live in seconds.

Ex: 3600

Example
1
2
3
4
5
6
7
8
9
10
11
12
13
{
  "name": "John Doe",
  "email": "[email protected]",
  "role_ids": [
    "3dXBP3v36sZZKsfIhuTBec"
  ],
  "locale": "pt-BR",
  "provider_name": "okta",
  "provider_id": "00u1a2b3c4d5e6f7g8h9",
  "provider_sub": "<PROVIDER_SUB>",
  "id": "<ID>",
  "ttl": 3600
}

Response

201

TempUser created

message
String

Ex: TempUser created successfully

id
String

Ex: user:6f1e2d3c4b5a

Example
1
2
3
4
{
  "message": "TempUser created successfully",
  "id": "user:6f1e2d3c4b5a"
}

400

Invalid JSON format

error_description
String

Human readable error message.

Ex: Param workspace_id is required

Example
1
2
3
{
  "error_description": "Param workspace_id is required"
}

422

Validation error

error_description
String

Human readable error message.

Ex: Param workspace_id is required

Example
1
2
3
{
  "error_description": "Param workspace_id is required"
}