All Products
Search
Document Center

Drive and Photo Service:AddGroupMember

Last Updated:May 26, 2026

Adds a member to a group.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST /v2/group/add_member HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

domain_id

string

Yes

The domain ID.

body

object

No

The request body.

group_id

string

Yes

The ID of the group to add a member to.

3e5***2c2

member_type

string

Yes

The type of member to add. For this operation, the only valid value is user. To add a group as a member of another group, you must specify the parent group when creating that group.

  • user

Note: A group can belong to only one parent group, but a user can belong to multiple groups.

user

member_id

string

Yes

The user ID of the member to add.

2e4***1b1

Response elements

Element

Type

Description

Example

None defined.

Examples

Success response

JSON format

{}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.