WorkspaceUser #
Package : spaceone.api.identity.v2
WorkspaceUser #
WorkspaceUser service api are used to manage workspace users by the workspace owner.
WorkspaceUser Methods:
create #
Create a workspace user. If the user does not exist in your domain, the user will be created in your domain and create a workspace user with the role. If you want to create a workspace user with the existing user, you can use role-binding create api.
POST /identity/v2/workspace-user/create
user_id (string)
Requiredauth_type (AuthType)
RequiredLOCAL, EXTERNAL
reset_password (bool)
RequiredIf reset_password is true, send email
role_id (string)
RequiredYou can use custom role or managed role something like
managed-workspace-member,managed-workspace-owner,…password (string)
When auth_type is LOCAL, password is required.
name (string)
email (string)
language (string)
en,ko
timezone (string)
UTC, Asia/Seoul
tags (Struct)
{
"user_id": "wonny@cloudforet.io",
"password": "Password0*",
"name": "Wonny",
"email": "wonny@cloudforet.io",
"auth_type": "LOCAL",
"language": "en",
"timezone": "UTC",
"tags": {
"team": "cloudforet"
},
"reset_password": false,
"role_id": "managed-workspace-member"
}user_id (string)
Requiredname (string)
Requiredstate (State)
Requiredemail (string)
Requiredauth_type (AuthType)
Requiredrole_type (RoleType)
Requiredlanguage (string)
Requiredtimezone (string)
Requiredapi_key_count (int32)
Requiredtags (Struct)
Requiredrole_binding_info (RoleBindingInfo)
Requiredemail_verified (bool)
Requireddomain_id (string)
Requiredcreated_at (string)
Requiredlast_accessed_at (string)
Required
{
"user_id": "wonny@cloudforet.io",
"name": "Wonny",
"state": "PENDING",
"email": "wonny@cloudforet.io",
"auth_type": "LOCAL",
"role_type": "USER",
"language": "en",
"timezone": "UTC",
"api_key_count": 0,
"role_binding_info": {
"user_id": "wonny@cloudforet.io",
"workspace_id": "workspace-99d4nn0c14ae",
"domain_id": "domain-1234ee0c14ae",
"role_binding_id": "rb-11d4eeaa1411",
"role_id": "managed-workspace-member",
"role_type": "MANAGED",
"resource_group": "WORKSPACE",
"created_at": "2024-11-12T06:06:04.999Z"
},
"created_at": "2024-11-12T06:06:04.999Z"
}get #
POST /identity/v2/workspace-user/get
user_id (string)
Requiredworkspace_id (string)
For DOMAIN ADMIN this field is optional, but for WORKSPACE OWNER and WORKSPACE MEMBER this field is required.
{
"user_id": "wonny@cloudforet.io",
"workspace_id": "workspace-ab12345"
}user_id (string)
Requiredname (string)
Requiredstate (State)
Requiredemail (string)
Requiredauth_type (AuthType)
Requiredrole_type (RoleType)
Requiredlanguage (string)
Requiredtimezone (string)
Requiredapi_key_count (int32)
Requiredtags (Struct)
Requiredrole_binding_info (RoleBindingInfo)
Requiredemail_verified (bool)
Requireddomain_id (string)
Requiredcreated_at (string)
Requiredlast_accessed_at (string)
Required
{
"user_id": "wonny@cloudforet.io",
"name": "Wonny",
"state": "PENDING",
"email": "wonny@cloudforet.io",
"auth_type": "LOCAL",
"role_type": "USER",
"language": "en",
"timezone": "UTC",
"api_key_count": 0,
"role_binding_info": {
"user_id": "wonny@cloudforet.io",
"workspace_id": "workspace-99d4nn0c14ae",
"domain_id": "domain-1234ee0c14ae",
"role_binding_id": "rb-11d4eeaa1411",
"role_id": "managed-workspace-member",
"role_type": "MANAGED",
"resource_group": "WORKSPACE",
"created_at": "2024-11-12T06:06:04.999Z"
},
"created_at": "2024-11-12T06:06:04.999Z"
}find #
POST /identity/v2/workspace-user/find
keyword (string)
Requiredworkspace_id (string)
Requiredstate (State)
page (Page)
{
"keyword": "cloudforet",
"state": "ENABLED",
"page": {
"start": 1,
"limit": 5
}
}results (UserSummaryInfo)
RepeatedRequiredtotal_count (int32)
Required
{
"results": [
{
"user_id": "wonny@cloudforet.io",
"name": "Wonny",
"state": "ENABLED"
},
{
"user_id": "belty@cloudforet.io",
"name": "Belty",
"state": "ENABLED"
},
{
"user_id": "bolby@cloudforet.io",
"state": "PENDING"
},
{
"user_id": "cuby@cloudforet.io",
"state": "PENDING"
},
{
"user_id": "musly@cloudforet.io",
"state": "PENDING"
}
],
"total_count": 21
}list #
POST /identity/v2/workspace-user/list
workspace_id (string)
Requiredquery (Query)
user_id (string)
name (string)
state (State)
email (string)
auth_type (AuthType)
role_type (string)
{
"query": {
"filter": [
{
"k": "language",
"v": "en",
"o": "eq"
}
]
}
}results (WorkspaceUserInfo)
RepeatedRequiredtotal_count (int32)
Required
{
"results": [
{
"user_id": "wonny@cloudforet.io",
"name": "Wonny",
"state": "ENABLED",
"email": "wonny@cloudforet.io",
"auth_type": "LOCAL",
"role_type": "USER",
"language": "en",
"timezone": "UTC",
"api_key_count": 2,
"role_binding_info": {
"user_id": "wonny@cloudforet.io",
"workspace_id": "workspace-99d4nn0c14ae",
"domain_id": "domain-1234ee0c14ae",
"role_binding_id": "rb-11d4eeaa1411",
"role_id": "managed-workspace-member",
"role_type": "MANAGED",
"resource_group": "WORKSPACE",
"created_at": "2024-11-12T06:06:04.999Z"
},
"domain_id": "domain-1234ee0c14ae",
"created_at": "2024-11-12T06:06:04.999Z",
"last_accessed_at": "2024-11-12T06:06:04.999Z"
}
]
}stat #
POST /identity/v1/workspace-user/stat
Message #
CreateWorkspaceUserRequest #
user_id (string)
Requiredauth_type (AuthType)
RequiredLOCAL, EXTERNAL
reset_password (bool)
RequiredIf reset_password is true, send email
role_id (string)
RequiredYou can use custom role or managed role something like
managed-workspace-member,managed-workspace-owner,…password (string)
When auth_type is LOCAL, password is required.
name (string)
email (string)
language (string)
en,ko
timezone (string)
UTC, Asia/Seoul
tags (Struct)
UserSummaryInfo #
user_id (string)
Requiredname (string)
Requiredstate (State)
Required
UsersSummaryInfo #
results (UserSummaryInfo)
RepeatedRequiredtotal_count (int32)
Required
WorkspaceUserFindRequest #
keyword (string)
Requiredworkspace_id (string)
Requiredstate (State)
page (Page)
WorkspaceUserInfo #
user_id (string)
Requiredname (string)
Requiredstate (State)
Requiredemail (string)
Requiredauth_type (AuthType)
Requiredrole_type (RoleType)
Requiredlanguage (string)
Requiredtimezone (string)
Requiredapi_key_count (int32)
Requiredtags (Struct)
Requiredrole_binding_info (RoleBindingInfo)
Requiredemail_verified (bool)
Requireddomain_id (string)
Requiredcreated_at (string)
Requiredlast_accessed_at (string)
Required
WorkspaceUserRequest #
user_id (string)
Requiredworkspace_id (string)
For DOMAIN ADMIN this field is optional, but for WORKSPACE OWNER and WORKSPACE MEMBER this field is required.
WorkspaceUserSearchQuery #
workspace_id (string)
Requiredquery (Query)
user_id (string)
name (string)
state (State)
email (string)
auth_type (AuthType)
role_type (string)
WorkspaceUserStatQuery #
query (StatisticsQuery)
Requiredworkspace_id (string)
Required
WorkspaceUsersInfo #
results (WorkspaceUserInfo)
RepeatedRequiredtotal_count (int32)
Required