Purpose: Allows adding multiple users to a specific workspace in a single request.
Each user is assigned a role within the workspace.
Upon being added, the invited user receives an email containing a registration link with a unique hash and type as query parameters:
http://<app-domain>/register?hash=e0754cfc-f7d1-4cc3-8690-e34a2f17291d&type=WORK_SPACE
hash — A unique UUID tied to the workspace invitation. Must be passed in the sign-up API to complete registration.type — Indicates the invitation context. WORK_SPACE means the user is being invited to a workspace.POST /noCo/api/v2/workspaces/{workspaceId}/bulkUsers
| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | UUID | ✅ Yes | Identifier of the workspace |
Requires authentication using:
Authorization: Bearer <token>
| Header | Required |
|---|---|
| Authorization | ✅ Yes |
| Content-Type: application/json | ✅ Yes |
{
"workSpaceUsers": [
{
"email": "string",
"role": "string"
}
],
"message": "string"
}
| Parameter | Type | Required | Description |
|---|---|---|---|
| workSpaceUsers | array | ✅ Yes | List of users to be added to the workspace |
| workSpaceUsers.email | string | ✅ Yes | Email ID of the user |
| workSpaceUsers.role | string | ✅ Yes | Role assigned in the workspace (CREATOR, EDITOR, VIEWER) |
| message | string | ❌ No | Optional message sent along with the invite |
Once this API is called successfully, the invited user receives an email with a registration link:
http://<app-domain>/register?hash=e0754cfc-f7d1-4cc3-8690-e34a2f17291d&type=WORK_SPACE
The user must use this link to complete their registration by calling:
POST /idp/api/v1/user/sign-up
With the hash extracted from the link:
{
"email": "user@example.com",
"password": "Demo12#$",
"firstname": "John",
"lastname": "Doe",
"hash": "e0754cfc-f7d1-4cc3-8690-e34a2f17291d"
}
⚠️ The
hashis single-use and time-limited. If expired, the workspace admin must re-invite the user.
curl -X POST https://be.datagol.ai/noCo/api/v2/workspaces/{workspaceId}/bulkUsers \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"workSpaceUsers": [
{
"email": "user1@datagol.com",
"role": "EDITOR"
},
{
"email": "user2@datagol.com",
"role": "VIEWER"
}
],
"message": "Workspace access invitation"
}'
Enables bulk addition of users to a workspace and assigns roles to each user.
• Role Assignment — Each user is assigned CREATOR, EDITOR, or VIEWER role.
• Invitation Email — Each invited user receives an email with a registration link containing a unique hash and type=WORK_SPACE.
• Hash-Based Registration — The invited user must use the hash from the email link to complete sign-up via POST /idp/api/v1/user/sign-up.
• OTP Not Required — Workspace-invited users are activated via hash validation and do not go through the OTP verification step.