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
  • WorkspaceUser
  • create
  • get
  • find
  • list
  • stat
  • Message
  • CreateWorkspaceUserRequest
  • UserSummaryInfo
  • UsersSummaryInfo
  • WorkspaceUserFindRequest
  • WorkspaceUserInfo
  • WorkspaceUserRequest
  • WorkspaceUserSearchQuery
  • WorkspaceUserStatQuery
  • WorkspaceUsersInfo
  1. content
  2. en
  3. identity
  4. v2

WorkspaceUser

Package : spaceone.api.identity.v2

WorkspaceUser

WorkspaceUser service api are used to manage workspace users by the workspace owner.

WorkspaceUser Methods:

Method
Request
Response

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

{{< tabs " create " >}}

{{< tab "Request Example" >}}

  • user_id (string) Required

  • auth_type (AuthType) Required

    LOCAL, EXTERNAL

  • reset_password (bool) Required

    If reset_password is true, send email

  • role_id (string) Required

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

{{< highlight json >}} { "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" } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

  • user_id (string) Required

  • name (string) Required

  • state (State) Required

  • email (string) Required

  • auth_type (AuthType) Required

  • role_type (RoleType) Required

  • language (string) Required

  • timezone (string) Required

  • api_key_count (int32) Required

  • tags (Struct) Required

  • role_binding_info (RoleBindingInfo) Required

  • email_verified (bool) Required

  • domain_id (string) Required

  • created_at (string) Required

  • last_accessed_at (string) Required

{{< highlight json >}} { "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" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

get

POST /identity/v2/workspace-user/get

{{< tabs " get " >}}

{{< tab "Request Example" >}}

  • user_id (string) Required

  • workspace_id (string)

    For DOMAIN ADMIN this field is optional, but for WORKSPACE OWNER and WORKSPACE MEMBER this field is required.

{{< highlight json >}} { "user_id": "wonny@cloudforet.io", "workspace_id": "workspace-ab12345" } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

  • user_id (string) Required

  • name (string) Required

  • state (State) Required

  • email (string) Required

  • auth_type (AuthType) Required

  • role_type (RoleType) Required

  • language (string) Required

  • timezone (string) Required

  • api_key_count (int32) Required

  • tags (Struct) Required

  • role_binding_info (RoleBindingInfo) Required

  • email_verified (bool) Required

  • domain_id (string) Required

  • created_at (string) Required

  • last_accessed_at (string) Required

{{< highlight json >}} { "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" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

find

POST /identity/v2/workspace-user/find

{{< tabs " find " >}}

{{< tab "Request Example" >}}

  • keyword (string) Required

  • workspace_id (string) Required

  • state (State)

  • page (Page)

{{< highlight json >}} { "keyword": "cloudforet", "state": "ENABLED", "page": { "start": 1, "limit": 5 } } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

  • results (UserSummaryInfo) Repeated Required

  • total_count (int32) Required

{{< highlight json >}} { "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 } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

list

POST /identity/v2/workspace-user/list

{{< tabs " list " >}}

{{< tab "Request Example" >}}

  • workspace_id (string) Required

  • query (Query)

  • user_id (string)

  • name (string)

  • state (State)

  • email (string)

  • auth_type (AuthType)

  • role_type (string)

{{< highlight json >}} { "query": { "filter": [ { "k": "language", "v": "en", "o": "eq" } ] } } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

  • results (WorkspaceUserInfo) Repeated Required

  • total_count (int32) Required

{{< highlight json >}} { "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" } ] } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

stat

POST /identity/v1/workspace-user/stat

Message

CreateWorkspaceUserRequest

  • user_id (string) Required

  • auth_type (AuthType) Required

    LOCAL, EXTERNAL

  • reset_password (bool) Required

    If reset_password is true, send email

  • role_id (string) Required

    You 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) Required

  • name (string) Required

  • state (State) Required

UsersSummaryInfo

  • results (UserSummaryInfo) Repeated Required

  • total_count (int32) Required

WorkspaceUserFindRequest

  • keyword (string) Required

  • workspace_id (string) Required

  • state (State)

  • page (Page)

WorkspaceUserInfo

  • user_id (string) Required

  • name (string) Required

  • state (State) Required

  • email (string) Required

  • auth_type (AuthType) Required

  • role_type (RoleType) Required

  • language (string) Required

  • timezone (string) Required

  • api_key_count (int32) Required

  • tags (Struct) Required

  • role_binding_info (RoleBindingInfo) Required

  • email_verified (bool) Required

  • domain_id (string) Required

  • created_at (string) Required

  • last_accessed_at (string) Required

WorkspaceUserRequest

  • user_id (string) Required

  • workspace_id (string)

    For DOMAIN ADMIN this field is optional, but for WORKSPACE OWNER and WORKSPACE MEMBER this field is required.

WorkspaceUserSearchQuery

  • workspace_id (string) Required

  • query (Query)

  • user_id (string)

  • name (string)

  • state (State)

  • email (string)

  • auth_type (AuthType)

  • role_type (string)

WorkspaceUserStatQuery

  • query (StatisticsQuery) Required

  • workspace_id (string) Required

WorkspaceUsersInfo

  • results (WorkspaceUserInfo) Repeated Required

  • total_count (int32) Required

PreviousWorkspaceGroupUserNextv2

Last updated 6 months ago

CreateWorkspaceUserRequest
WorkspaceUserRequest
WorkspaceUserFindRequest
WorkspaceUserSearchQuery
WorkspaceUserInfo
WorkspaceUserInfo
UsersSummaryInfo
WorkspaceUsersInfo
create
CreateWorkspaceUserRequest
WorkspaceUserInfo
get
WorkspaceUserRequest
WorkspaceUserInfo
find
WorkspaceUserFindRequest
UsersSummaryInfo
list
WorkspaceUserSearchQuery
WorkspaceUsersInfo
stat
WorkspaceUserStatQuery
Struct