cloudforet-apis
  • README
  • content
    • en
      • Cloudforet API Documentation
      • board
        • _index
        • v1
          • Board
          • Post
          • v1
      • config
        • _index
        • v1
          • DomainConfig
          • PublicConfig
          • UserConfig
          • WorkspaceConfig
          • v1
      • core
        • _index
        • v1
          • Handler
          • Query
          • ServerInfo
          • v1
        • v2
          • Handler
          • Plugin
          • Query
          • v2
      • cost_analysis
        • _index
        • plugin
          • Cost
          • DataSource
          • Job
          • plugin
        • v1
          • Budget
          • BudgetUsage
          • Cost
          • CostQuerySet
          • CostReport
          • CostReportConfig
          • CostReportData
          • CustomWidget
          • DataSource
          • DataSourceAccount
          • DataSourceRule
          • ExchangeRate
          • Job
          • JobTask
          • PublicDashboard
          • Schedule
          • UnifiedCost
          • UserDashboard
          • v1
      • dashboard
        • _index
        • v1
          • CustomWidget
          • Dashboard
          • DomainDashboard
          • PrivateDashboard
          • PrivateDataTable
          • PrivateFolder
          • PrivateWidget
          • ProjectDashboard
          • PublicDashboard
          • PublicDataTable
          • PublicFolder
          • PublicWidget
          • v1
      • file_manager
        • _index
        • v1
          • File
          • PublicFile
          • v1
      • identity
        • _index
        • plugin
          • AccountCollector
          • Auth
          • ExternalAuth
          • plugin
        • v1
          • ApiKey
          • Authorization
          • Domain
          • DomainOwner
          • Endpoint
          • Policy
          • Project
          • ProjectGroup
          • Provider
          • Role
          • RoleBinding
          • ServiceAccount
          • Token
          • User
          • v1
        • v2
          • Agent
          • ApiKey
          • App
          • Authorization
          • Domain
          • Endpoint
          • ExternalAuth
          • Job
          • Package
          • Policy
          • Project
          • ProjectGroup
          • Provider
          • Role
          • RoleBinding
          • Schema
          • ServiceAccount
          • System
          • Token
          • TrustedAccount
          • TrustedServiceAccount
          • User
          • UserGroup
          • UserProfile
          • Workspace
          • WorkspaceGroup
          • WorkspaceGroupDetails
          • WorkspaceGroupUser
          • WorkspaceUser
          • v2
      • inventory
        • _index
        • plugin
          • Collector
          • Job
          • plugin
        • v1
          • ChangeHistory
          • CloudService
          • CloudServiceQuerySet
          • CloudServiceReport
          • CloudServiceStats
          • CloudServiceType
          • Collector
          • CollectorRule
          • Job
          • JobTask
          • Metric
          • MetricData
          • MetricExample
          • Namespace
          • Note
          • Region
          • ResourceGroup
          • v1
        • v2
          • Region
          • v2
      • monitoring
        • _index
        • plugin
          • DataSource
          • Event
          • Log
          • Metric
          • Webhook
          • plugin
        • v1
          • Alert
          • DataSource
          • EscalationPolicy
          • Event
          • EventRule
          • Log
          • MaintenanceWindow
          • Metric
          • Note
          • ProjectAlertConfig
          • Webhook
          • v1
      • mzc_service_api
        • _index
        • v1
          • Contract
          • Offering
          • Organization
          • v1
      • notification
        • _index
        • plugin
          • Notification
          • Protocol
          • plugin
        • v1
          • Notification
          • NotificationUsage
          • ProjectChannel
          • Protocol
          • Quota
          • UserChannel
          • v1
      • opsflow
        • _index
        • v1
          • Comment
          • Event
          • Task
          • TaskCategory
          • TaskType
          • v1
      • plugin
        • _index
        • v1
          • Plugin
          • Supervisor
          • v1
      • repository
        • _index
        • v1
          • DashboardTemplate
          • Plugin
          • Policy
          • Repository
          • Schema
          • v1
        • v2
          • Common
          • Provider
          • RemoteRepository
          • Schema
          • v2
      • sample
        • _index
        • v1
          • Helloworld
          • v1
      • search
        • _index
        • v1
          • Resource
          • v1
      • secret
        • _index
        • v1
          • Secret
          • SecretGroup
          • TrustedSecret
          • UserSecret
          • v1
      • statistics
        • _index
        • plugin
          • Storage
          • plugin
        • v1
          • History
          • Resource
          • Schedule
          • Storage
          • v1
Powered by GitBook
On this page
  • User
  • create
  • update
  • verify_email
  • disable_mfa
  • set_required_actions
  • set_refresh_timeout
  • enable
  • disable
  • delete
  • get
  • list
  • stat
  • Message
  • CreateUserRequest
  • DisableMFAUserRequest
  • MFA
  • SetRefreshTimeout
  • SetRequiredActionsUserRequest
  • UpdateUserRequest
  • UserInfo
  • UserRequest
  • UserSearchQuery
  • UserStatQuery
  • UsersInfo
  • VerifyEmailUserRequest
  1. content
  2. en
  3. identity
  4. v2

User

User API which allows member management within project, company, and domain note: Administrator must register User first.

Package : spaceone.api.identity.v2

User

User Methods:

Method
Request
Response

create

You can create user. after create user you have to binding role to user. See role-binding create api. External type user do not need password.

POST /identity/v2/user/create

{{< tabs " create " >}}

{{< tab "Request Example" >}}

  • user_id (string) Required

  • auth_type (AuthType) Required

  • reset_password (bool) Required

    If reset_password is true, send email

  • 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)

{{< highlight json >}} { "user_id": "wonny@cloudforet.io", "password": "Password1234!", "reset_password": false, "name": "Wonny", "email": "wonny@cloudforet.io", "auth_type": "LOCAL", "language": "en", "timezone": "UTC" } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

  • user_id (string) Required

  • name (string) Required

  • state (State) Required

  • email (string) Required

  • email_verified (bool) Required

  • auth_type (AuthType) Required

  • role_id (string) Required

  • role_type (RoleType) Required

  • mfa (MFA) Required

  • language (string) Required

  • timezone (string) Required

  • required_actions (UserRequiredAction) Repeated Required

  • refresh_timeout (int32) Required

  • tags (Struct) Required

  • domain_id (string) Required

  • created_at (string) Required

  • last_accessed_at (string) Required

{{< highlight json >}} { "user_id": "wonny@cloudforet.io", "password": "Password1234!", "name": "Wonny", "email": "wonny@cloudforet.io", "auth_type": "LOCAL", "language": "en", "timezone": "UTC" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

update

Update user info by given user_id

POST /identity/v2/user/update

{{< tabs " update " >}}

{{< tab "Request Example" >}}

  • user_id (string) Required

  • password (string)

  • name (string)

  • email (string)

  • language (string)

  • timezone (string)

  • tags (Struct)

  • reset_password (bool)

{{< highlight json >}} { "user_id": "wonny@cloudforet.io", "password": "Password1234!!", "reset_password": false, "name": "Cloudforet", "email": "cloudforet@cloudforet.io", "auth_type": "LOCAL", "language": "en", "timezone": "UTC" } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

  • user_id (string) Required

  • name (string) Required

  • state (State) Required

  • email (string) Required

  • email_verified (bool) Required

  • auth_type (AuthType) Required

  • role_id (string) Required

  • role_type (RoleType) Required

  • mfa (MFA) Required

  • language (string) Required

  • timezone (string) Required

  • required_actions (UserRequiredAction) Repeated Required

  • refresh_timeout (int32) Required

  • tags (Struct) Required

  • domain_id (string) Required

  • created_at (string) Required

  • last_accessed_at (string) Required

{{< highlight json >}} { "user_id": "wonny@cloudforet.io", "password": "Password1234!", "name": "Wonny", "email": "wonny@cloudforet.io", "auth_type": "LOCAL", "language": "en", "timezone": "UTC" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

verify_email

POST /identity/v2/user/verify-email

{{< tabs " verify_email " >}}

{{< tab "Request Example" >}}

  • user_id (string) Required

  • email (string)

{{< highlight json >}} { "user_id": "example@cloudforet.com", "email": "example@cloudforet.com" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

disable_mfa

Disable MFA for user. If this api is called, send email to user.

POST /identity/v2/user/disable-mfa

{{< tabs " disable_mfa " >}}

{{< tab "Request Example" >}}

  • user_id (string) Required

{{< highlight json >}} { "user_id": "example@cloudforet.com" } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

  • user_id (string) Required

  • name (string) Required

  • state (State) Required

  • email (string) Required

  • email_verified (bool) Required

  • auth_type (AuthType) Required

  • role_id (string) Required

  • role_type (RoleType) Required

  • mfa (MFA) Required

  • language (string) Required

  • timezone (string) Required

  • required_actions (UserRequiredAction) Repeated Required

  • refresh_timeout (int32) Required

  • tags (Struct) Required

  • domain_id (string) Required

  • created_at (string) Required

  • last_accessed_at (string) Required

{{< highlight json >}} { "user_id": "wonny@cloudforet.io", "password": "Password1234!", "name": "Wonny", "email": "wonny@cloudforet.io", "auth_type": "LOCAL", "language": "en", "timezone": "UTC" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

set_required_actions

POST /identity/v2/user/set-required-actions

{{< tabs " set_required_actions " >}}

{{< tab "Request Example" >}}

  • user_id (string) Required

  • required_actions (UserRequiredAction) Repeated Required

{{< highlight json >}} { "user_id": "example@cloudforet.com", "required_actions": ["UPDATE_PASSWORD"] } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

  • user_id (string) Required

  • name (string) Required

  • state (State) Required

  • email (string) Required

  • email_verified (bool) Required

  • auth_type (AuthType) Required

  • role_id (string) Required

  • role_type (RoleType) Required

  • mfa (MFA) Required

  • language (string) Required

  • timezone (string) Required

  • required_actions (UserRequiredAction) Repeated Required

  • refresh_timeout (int32) Required

  • tags (Struct) Required

  • domain_id (string) Required

  • created_at (string) Required

  • last_accessed_at (string) Required

{{< highlight json >}} { "user_id": "wonny@cloudforet.io", "password": "Password1234!", "name": "Wonny", "email": "wonny@cloudforet.io", "auth_type": "LOCAL", "language": "en", "timezone": "UTC" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

set_refresh_timeout

Sets the user's refresh token timeout. This API can only be used by users with the DOMAIN_ADMIN role. Min value is 1800 seconds and max value is 2592000 seconds

POST /identity/v2/user/set-refresh-timeout

{{< tabs " set_refresh_timeout " >}}

{{< tab "Request Example" >}}

  • user_id (string) Required

  • refresh_timeout (int32) Required

{{< highlight json >}} { "user_id": "wonny@cloudforet.io", "refresh_token_timout": 10800 } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

  • user_id (string) Required

  • name (string) Required

  • state (State) Required

  • email (string) Required

  • email_verified (bool) Required

  • auth_type (AuthType) Required

  • role_id (string) Required

  • role_type (RoleType) Required

  • mfa (MFA) Required

  • language (string) Required

  • timezone (string) Required

  • required_actions (UserRequiredAction) Repeated Required

  • refresh_timeout (int32) Required

  • tags (Struct) Required

  • domain_id (string) Required

  • created_at (string) Required

  • last_accessed_at (string) Required

{{< highlight json >}} { "user_id": "wonny@cloudforet.io", "password": "Password1234!", "name": "Wonny", "email": "wonny@cloudforet.io", "auth_type": "LOCAL", "language": "en", "timezone": "UTC" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

enable

POST /identity/v2/user/enable

{{< tabs " enable " >}}

{{< tab "Request Example" >}}

  • user_id (string) Required

{{< highlight json >}} { "user_id": "example@cloudforet.com" } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

  • user_id (string) Required

  • name (string) Required

  • state (State) Required

  • email (string) Required

  • email_verified (bool) Required

  • auth_type (AuthType) Required

  • role_id (string) Required

  • role_type (RoleType) Required

  • mfa (MFA) Required

  • language (string) Required

  • timezone (string) Required

  • required_actions (UserRequiredAction) Repeated Required

  • refresh_timeout (int32) Required

  • tags (Struct) Required

  • domain_id (string) Required

  • created_at (string) Required

  • last_accessed_at (string) Required

{{< highlight json >}} { "user_id": "wonny@cloudforet.io", "password": "Password1234!", "name": "Wonny", "email": "wonny@cloudforet.io", "auth_type": "LOCAL", "language": "en", "timezone": "UTC" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

disable

POST /identity/v2/user/disable

{{< tabs " disable " >}}

{{< tab "Request Example" >}}

  • user_id (string) Required

{{< highlight json >}} { "user_id": "example@cloudforet.com" } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

  • user_id (string) Required

  • name (string) Required

  • state (State) Required

  • email (string) Required

  • email_verified (bool) Required

  • auth_type (AuthType) Required

  • role_id (string) Required

  • role_type (RoleType) Required

  • mfa (MFA) Required

  • language (string) Required

  • timezone (string) Required

  • required_actions (UserRequiredAction) Repeated Required

  • refresh_timeout (int32) Required

  • tags (Struct) Required

  • domain_id (string) Required

  • created_at (string) Required

  • last_accessed_at (string) Required

{{< highlight json >}} { "user_id": "wonny@cloudforet.io", "password": "Password1234!", "name": "Wonny", "email": "wonny@cloudforet.io", "auth_type": "LOCAL", "language": "en", "timezone": "UTC" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

delete

POST /identity/v2/user/delete

{{< tabs " delete " >}}

{{< tab "Request Example" >}}

  • user_id (string) Required

{{< highlight json >}} { "user_id": "example@cloudforet.com" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

get

POST /identity/v2/user/get

{{< tabs " get " >}}

{{< tab "Request Example" >}}

  • user_id (string) Required

{{< highlight json >}} { "user_id": "example@cloudforet.com" } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

  • user_id (string) Required

  • name (string) Required

  • state (State) Required

  • email (string) Required

  • email_verified (bool) Required

  • auth_type (AuthType) Required

  • role_id (string) Required

  • role_type (RoleType) Required

  • mfa (MFA) Required

  • language (string) Required

  • timezone (string) Required

  • required_actions (UserRequiredAction) Repeated Required

  • refresh_timeout (int32) Required

  • tags (Struct) Required

  • domain_id (string) Required

  • created_at (string) Required

  • last_accessed_at (string) Required

{{< highlight json >}} { "user_id": "wonny@cloudforet.io", "password": "Password1234!", "name": "Wonny", "email": "wonny@cloudforet.io", "auth_type": "LOCAL", "language": "en", "timezone": "UTC" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

list

POST /identity/v2/user/list

{{< tabs " list " >}}

{{< tab "Request Example" >}}

  • query (Query)

  • user_id (string)

  • name (string)

  • state (State)

  • email (string)

  • auth_type (AuthType)

{{< highlight json >}} { "auth_type": "LOCAL", "query": { "page": { "start": 1, "limit": 10 }, "sort": [{ "key": "created_at", "desc": true }] } } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

  • results (UserInfo) Repeated Required

  • total_count (int32) Required

{{< highlight json >}} { "results": [ { "auth_type": "LOCAL", "created_at": "2024-11-14T01:53:19.224Z", "domain_id": "domain-a1b2c3d4e5f6", "email": "wonny@cloudforet.io", "language": "en", "name": "Wonny", "role_type": "USER", "state": "PENDING", "timezone": "UTC", "user_id": "wonny@cloudforet.io" }, { "auth_type": "LOCAL", "created_at": "2024-11-12T04:46:41.209Z", "domain_id": "domain-a1b2c3d4e5f6", "email": "cloudforet@cloudforet.io", "language": "ko", "last_accessed_at": "2024-11-13T07:42:46.511Z", "name": "Cloudforet Admin", "role_id": "managed-domain-admin", "role_type": "DOMAIN_ADMIN", "state": "ENABLED", "timezone": "UTC", "user_id": "cloudforet@cloudforet.io" } ], "total_count": 2 } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

stat

POST /identity/v1/user/stat

Message

CreateUserRequest

  • user_id (string) Required

  • auth_type (AuthType) Required

  • reset_password (bool) Required

    If reset_password is true, send email

  • 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)

DisableMFAUserRequest

  • user_id (string) Required

MFA

  • state (State) Required

  • mfa_type (string) Required

  • options (Struct) Required

SetRefreshTimeout

  • user_id (string) Required

  • refresh_timeout (int32) Required

SetRequiredActionsUserRequest

  • user_id (string) Required

  • required_actions (UserRequiredAction) Repeated Required

UpdateUserRequest

  • user_id (string) Required

  • password (string)

  • name (string)

  • email (string)

  • language (string)

  • timezone (string)

  • tags (Struct)

  • reset_password (bool)

UserInfo

  • user_id (string) Required

  • name (string) Required

  • state (State) Required

  • email (string) Required

  • email_verified (bool) Required

  • auth_type (AuthType) Required

  • role_id (string) Required

  • role_type (RoleType) Required

  • mfa (MFA) Required

  • language (string) Required

  • timezone (string) Required

  • required_actions (UserRequiredAction) Repeated Required

  • refresh_timeout (int32) Required

  • tags (Struct) Required

  • domain_id (string) Required

  • created_at (string) Required

  • last_accessed_at (string) Required

UserRequest

  • user_id (string) Required

UserSearchQuery

  • query (Query)

  • user_id (string)

  • name (string)

  • state (State)

  • email (string)

  • auth_type (AuthType)

UserStatQuery

  • query (StatisticsQuery) Required

UsersInfo

  • results (UserInfo) Repeated Required

  • total_count (int32) Required

VerifyEmailUserRequest

  • user_id (string) Required

  • email (string)

PreviousTrustedServiceAccountNextUserGroup

Last updated 5 months ago

CreateUserRequest
UpdateUserRequest
VerifyEmailUserRequest
DisableMFAUserRequest
SetRequiredActionsUserRequest
SetRefreshTimeout
UserRequest
UserRequest
UserRequest
UserRequest
UserSearchQuery
UserInfo
UserInfo
UserInfo
UserInfo
UserInfo
UserInfo
UserInfo
UserInfo
UsersInfo
create
CreateUserRequest
UserInfo
update
UpdateUserRequest
UserInfo
verify_email
VerifyEmailUserRequest
Empty
disable_mfa
DisableMFAUserRequest
UserInfo
set_required_actions
SetRequiredActionsUserRequest
UserInfo
set_refresh_timeout
SetRefreshTimeout
UserInfo
enable
UserRequest
UserInfo
disable
UserRequest
UserInfo
delete
UserRequest
Empty
get
UserRequest
UserInfo
list
UserSearchQuery
UsersInfo
stat
UserStatQuery
Struct