# WorkspaceGroup

> **Package : spaceone.api.identity.v2**

\
\


## WorkspaceGroup

**WorkspaceGroup Methods:**

| Method                                                                                                                                 | Request                                                                                                                                                                 | Response                                                                                                                                        |
| -------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| [**create**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/WorkspaceGroup/README.md#create)              | [CreateWorkspaceGroupRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/WorkspaceGroup/README.md#createworkspacegrouprequest)         | [WorkspaceGroupInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/WorkspaceGroup/README.md#workspacegroupinfo)   |
| [**update**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/WorkspaceGroup/README.md#update)              | [UpdateWorkspaceGroupRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/WorkspaceGroup/README.md#updateworkspacegrouprequest)         | [WorkspaceGroupInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/WorkspaceGroup/README.md#workspacegroupinfo)   |
| [**delete**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/WorkspaceGroup/README.md#delete)              | [WorkspaceGroupRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/WorkspaceGroup/README.md#workspacegrouprequest)                     | [Empty](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/WorkspaceGroup/README.md#empty)                             |
| [**add\_users**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/WorkspaceGroup/README.md#add_users)       | [UsersWorkspaceGroupRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/WorkspaceGroup/README.md#usersworkspacegrouprequest)           | [WorkspaceGroupInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/WorkspaceGroup/README.md#workspacegroupinfo)   |
| [**remove\_users**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/WorkspaceGroup/README.md#remove_users) | [UsersWorkspaceGroupRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/WorkspaceGroup/README.md#usersworkspacegrouprequest)           | [WorkspaceGroupInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/WorkspaceGroup/README.md#workspacegroupinfo)   |
| [**update\_role**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/WorkspaceGroup/README.md#update_role)   | [WorkspaceGroupUpdateRoleRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/WorkspaceGroup/README.md#workspacegroupupdaterolerequest) | [WorkspaceGroupInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/WorkspaceGroup/README.md#workspacegroupinfo)   |
| [**get**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/WorkspaceGroup/README.md#get)                    | [WorkspaceGroupRequest](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/WorkspaceGroup/README.md#workspacegrouprequest)                     | [WorkspaceGroupInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/WorkspaceGroup/README.md#workspacegroupinfo)   |
| [**list**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/WorkspaceGroup/README.md#list)                  | [WorkspaceGroupSearchQuery](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/WorkspaceGroup/README.md#workspacegroupsearchquery)             | [WorkspaceGroupsInfo](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/WorkspaceGroup/README.md#workspacegroupsinfo) |
| [**stat**](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/WorkspaceGroup/README.md#stat)                  | [WorkspaceGroupStatQuery](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/WorkspaceGroup/README.md#workspacegroupstatquery)                 | [Struct](https://github.com/cloudforet-io/api-doc/blob/master/content/en/identity/v2/WorkspaceGroup/README.md#struct)                           |

\


### create

> **POST** /identity/v2/workspace-group/create

\


### update

> **POST** /identity/v2/workspace-group/update

\


### delete

> **POST** /identity/v2/workspace-group/delete

\


### add\_users

> **POST** /identity/v2/workspace-group/add-users

\


### remove\_users

> **POST** /identity/v2/workspace-group/remove-users

\


### update\_role

> **POST** /identity/v2/workspace-group/update-role

\


### get

> **POST** /identity/v2/workspace-group/get

\


### list

> **POST** /identity/v2/workspace-group/list

\


### stat

> **POST** /identity/v2/workspace-group/stat

\
\


## Message

### CreateWorkspaceGroupRequest

* **name** (string) `Required`
*   **tags** (Struct)

    \


### UpdateWorkspaceGroupRequest

* **workspace\_group\_id** (string) `Required`
* **name** (string)
*   **tags** (Struct)

    \


### UserWorkspaceGroup

* **user\_id** (string) `Required`
* **role\_id** (string) `Required`
* **role\_type** (string)
* **user\_name** (string)
*   **state** (string)

    \


### UsersWorkspaceGroupRequest

* **workspace\_group\_id** (string) `Required`
*   **users** (UserWorkspaceGroup) `Repeated` `Required`

    \


### WorkspaceGroupInfo

* **workspace\_group\_id** (string) `Required`
* **name** (string) `Required`
* **workspace\_count** (int32) `Required`
* **users** (UserWorkspaceGroup) `Repeated` `Required`
* **tags** (Struct) `Required`
* **created\_by** (string) `Required`
* **updated\_by** (string) `Required`
* **domain\_id** (string) `Required`
* **created\_at** (string) `Required`
*   **updated\_at** (string) `Required`

    \


### WorkspaceGroupRequest

*   **workspace\_group\_id** (string) `Required`

    \


### WorkspaceGroupSearchQuery

* **query** (Query)
* **workspace\_group\_id** (string)
* **name** (string)
* **created\_by** (string)
*   **updated\_by** (string)

    \


### WorkspaceGroupStatQuery

*   **query** (StatisticsQuery) `Required`

    \


### WorkspaceGroupUpdateRoleRequest

* **workspace\_group\_id** (string) `Required`
* **user\_id** (string) `Required`
*   **role\_id** (string) `Required`

    \


### WorkspaceGroupsInfo

* **results** (WorkspaceGroupInfo) `Repeated` `Required`
*   **total\_count** (int32) `Required`

    \
