curl --request POST \
--url https://api.swarmd.ai/tenant-auth/v1/groups/{groupId}/members \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"userIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'[
{
"user": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"permissions": [
{
"entity": "USERS",
"permission": "READ"
}
],
"firstName": "<string>",
"lastName": "<string>",
"groupIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
},
"groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assignedAt": "2023-11-07T05:31:56Z",
"assignedBy": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"permissions": [
{
"entity": "USERS",
"permission": "READ"
}
],
"firstName": "<string>",
"lastName": "<string>",
"groupIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
}
]Security Requirements
| Auth Types | Entities | Permissions | Required Roles |
|---|---|---|---|
| USER | GROUPS | WRITE | GROUPS:WRITE |
curl --request POST \
--url https://api.swarmd.ai/tenant-auth/v1/groups/{groupId}/members \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"userIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'[
{
"user": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"permissions": [
{
"entity": "USERS",
"permission": "READ"
}
],
"firstName": "<string>",
"lastName": "<string>",
"groupIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
},
"groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assignedAt": "2023-11-07T05:31:56Z",
"assignedBy": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"permissions": [
{
"entity": "USERS",
"permission": "READ"
}
],
"firstName": "<string>",
"lastName": "<string>",
"groupIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
}
]JWT token (USER, AGENT, or SERVICE auth)