Assign User to a Group
Last updated
Was this helpful?
Last updated
Was this helpful?
Assign an account user to a specific group.
/v1/accounts/{accountId}/users/{userId}/groups
curl -L \
--request POST \
--url '/v1/accounts/{accountId}/users/{userId}/groups' \
--header 'Content-Type: application/json' \
--data '{"id":"text"}'
{
"id": "text",
"audit": {
"created": {
"at": "2025-02-10T10:28:24.425Z",
"by": {
"id": "text",
"audit": {
"created": {
"at": "2025-02-10T10:28:24.425Z",
"by": "[Circular Reference]"
},
"updated": {
"at": "2025-02-10T10:28:24.425Z",
"by": "[Circular Reference]"
}
},
"$meta": {
"omitted": [
"text"
]
},
"href": "text",
"name": "text",
"icon": "text"
}
},
"updated": {
"at": "2025-02-10T10:28:24.425Z",
"by": {
"id": "text",
"audit": {
"created": {
"at": "2025-02-10T10:28:24.425Z",
"by": "[Circular Reference]"
},
"updated": {
"at": "2025-02-10T10:28:24.425Z",
"by": "[Circular Reference]"
}
},
"$meta": {
"omitted": [
"text"
]
},
"href": "text",
"name": "text",
"icon": "text"
}
},
"access": {
"at": "2025-02-10T10:28:24.425Z"
},
"joined": {
"at": "2025-02-10T10:28:24.425Z"
}
},
"$meta": {
"omitted": [
"text"
]
},
"href": "text",
"user": {
"id": "text",
"audit": {
"created": {
"at": "2025-02-10T10:28:24.425Z",
"by": {
"id": "text",
"audit": {
"created": {
"at": "2025-02-10T10:28:24.425Z",
"by": "[Circular Reference]"
},
"updated": {
"at": "2025-02-10T10:28:24.425Z",
"by": "[Circular Reference]"
}
},
"$meta": {
"omitted": [
"text"
]
},
"href": "text",
"name": "text",
"icon": "text"
}
},
"updated": {
"at": "2025-02-10T10:28:24.425Z",
"by": {
"id": "text",
"audit": {
"created": {
"at": "2025-02-10T10:28:24.425Z",
"by": "[Circular Reference]"
},
"updated": {
"at": "2025-02-10T10:28:24.425Z",
"by": "[Circular Reference]"
}
},
"$meta": {
"omitted": [
"text"
]
},
"href": "text",
"name": "text",
"icon": "text"
}
},
"invitationAcceptedAt": "2025-02-10T10:28:24.425Z"
},
"$meta": {
"omitted": [
"text"
]
},
"href": "text",
"email": "text",
"status": "text",
"phone": {
"prefix": "text",
"number": "text"
},
"firstName": "text",
"lastName": "text",
"icon": "text",
"lastLoginAt": "2025-02-10T10:28:24.425Z",
"settings": {
"cultureCode": "text",
"languageCode": "text"
},
"name": "text",
"accounts": [
{
"id": "text",
"audit": {
"created": {
"at": "2025-02-10T10:28:24.425Z",
"by": "[Circular Reference]"
},
"updated": {
"at": "2025-02-10T10:28:24.425Z",
"by": "[Circular Reference]"
}
},
"$meta": {
"omitted": [
"text"
]
},
"href": "text",
"externalIds": {
"pyraTenantId": "123e4567-e89b-12d3-a456-426614174000"
},
"externalId": "text",
"externalName": "text",
"type": "Client",
"status": "Active",
"serviceLevel": "Express",
"address": {
"addressLine1": "text",
"addressLine2": "text",
"postCode": "text",
"city": "text",
"state": "text",
"country": "text"
},
"icon": "text",
"technicalSupportEmail": "hello@example.com",
"website": "text",
"description": "text",
"name": "text",
"groups": [
{
"id": "text",
"audit": "[Circular Reference]",
"$meta": {
"omitted": [
"text"
]
},
"href": "text",
"name": "text",
"description": "text",
"account": "[Circular Reference]",
"modules": "[Circular Reference]",
"logo": "text",
"isDefault": true,
"users": "[Circular Reference]",
"buyers": "[Circular Reference]"
}
]
}
],
"currentAccount": {
"id": "text",
"audit": {
"created": {
"at": "2025-02-10T10:28:24.425Z",
"by": "[Circular Reference]"
},
"updated": {
"at": "2025-02-10T10:28:24.425Z",
"by": "[Circular Reference]"
}
},
"$meta": {
"omitted": [
"text"
]
},
"href": "text",
"externalIds": {
"pyraTenantId": "123e4567-e89b-12d3-a456-426614174000"
},
"externalId": "text",
"externalName": "text",
"type": "Client",
"status": "Active",
"serviceLevel": "Express",
"address": {
"addressLine1": "text",
"addressLine2": "text",
"postCode": "text",
"city": "text",
"state": "text",
"country": "text"
},
"icon": "text",
"technicalSupportEmail": "hello@example.com",
"website": "text",
"description": "text",
"name": "text",
"groups": [
{
"id": "text",
"audit": "[Circular Reference]",
"$meta": {
"omitted": [
"text"
]
},
"href": "text",
"name": "text",
"description": "text",
"account": "[Circular Reference]",
"modules": "[Circular Reference]",
"logo": "text",
"isDefault": true,
"users": "[Circular Reference]",
"buyers": "[Circular Reference]"
}
]
}
},
"groups": [
{
"id": "text",
"audit": {
"created": {
"at": "2025-02-10T10:28:24.425Z",
"by": "[Circular Reference]"
},
"updated": {
"at": "2025-02-10T10:28:24.425Z",
"by": "[Circular Reference]"
}
},
"$meta": {
"omitted": [
"text"
]
},
"href": "text",
"name": "text",
"description": "text",
"account": {
"id": "text",
"audit": {
"created": {
"at": "2025-02-10T10:28:24.425Z",
"by": "[Circular Reference]"
},
"updated": {
"at": "2025-02-10T10:28:24.425Z",
"by": "[Circular Reference]"
}
},
"$meta": {
"omitted": [
"text"
]
},
"href": "text",
"externalIds": {
"pyraTenantId": "123e4567-e89b-12d3-a456-426614174000"
},
"externalId": "text",
"externalName": "text",
"type": "Client",
"status": "Active",
"serviceLevel": "Express",
"address": {
"addressLine1": "text",
"addressLine2": "text",
"postCode": "text",
"city": "text",
"state": "text",
"country": "text"
},
"icon": "text",
"technicalSupportEmail": "hello@example.com",
"website": "text",
"description": "text",
"name": "text",
"groups": [
{
"id": "text",
"audit": "[Circular Reference]",
"$meta": {
"omitted": [
"text"
]
},
"href": "text",
"name": "text",
"description": "text",
"account": "[Circular Reference]",
"modules": "[Circular Reference]",
"logo": "text",
"isDefault": true,
"users": "[Circular Reference]",
"buyers": "[Circular Reference]"
}
]
},
"modules": [
{
"id": "text",
"audit": {
"created": {
"at": "2025-02-10T10:28:24.425Z",
"by": "[Circular Reference]"
},
"updated": {
"at": "2025-02-10T10:28:24.425Z",
"by": "[Circular Reference]"
}
},
"$meta": {
"omitted": [
"text"
]
},
"href": "text",
"description": "text",
"isConfigurable": true,
"isEnabledByDefault": true,
"paid": true,
"name": "text",
"accountTypes": [
"text"
],
"filters": {
"group.buyers": [
"text"
]
},
"settings": {
"sharedAccount": true,
"configurable": true,
"default": true,
"paid": true,
"type": [
"text"
]
}
}
],
"logo": "text",
"isDefault": true,
"users": [
{
"id": "text",
"audit": {
"created": {
"at": "2025-02-10T10:28:24.425Z",
"by": {
"id": "text",
"audit": {
"created": {
"at": "2025-02-10T10:28:24.425Z",
"by": "[Circular Reference]"
},
"updated": {
"at": "2025-02-10T10:28:24.425Z",
"by": "[Circular Reference]"
}
},
"$meta": {
"omitted": [
"text"
]
},
"href": "text",
"name": "text",
"icon": "text"
}
},
"updated": {
"at": "2025-02-10T10:28:24.425Z",
"by": {
"id": "text",
"audit": {
"created": {
"at": "2025-02-10T10:28:24.425Z",
"by": "[Circular Reference]"
},
"updated": {