Skip to content

Add members to an existing group

Request

This API adds members to an existing group. Required roles: users.datalake.viewers and OWNER of the requested group.

Security
bearer
Path
group_emailstringrequired

group email

Default:"users.datalake.viewers@{datapartition}.{domain}.com"
Headers
data-partition-idstringrequired

desired data partition id

Bodyapplication/json

array of member emails

emailstringrequired
Example:"member@{domain}.com"
rolestringrequired
Enum:"OWNER""MEMBER"
Example:"MEMBER"
curl -i -X POST \
  'https://as5.api.enterprisedata.slb.com/api/entitlements/v2/groups/{group_email}/members' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'data-partition-id: string' \
  -d '{
    "email": "member@{domain}.com",
    "role": "MEMBER"
  }'

Responses

Added member into a group. This change takes effect immediately.

Bodyapplication/json
Array [
string

Email of the member.

]
Response
[ "string" ]