Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Users

Soda Cloud API Users Endpoints

Get the default service account responsibilities

get
/api/v1/serviceAccounts/defaultResponsibilities

This endpoint returns the organization-wide defaults that Soda applies to every newly created service account: the users and user groups that are assigned a service account role automatically.

Assignments whose role has since been deleted are left out, because they no longer grant anything.

It is available once service account roles are enabled for the organization.

Authorization

Only users with the Manage organization settings permission can read the default service account responsibilities.

Authentication

User authentication required: true

This endpoint accepts authentication via API keys in the Basic authentication header, or a pre-authenticated token in HTTP cookie token. Cookie sessions extend automatically on each request.

Authorization

Users must have global role permission MANAGE_ORGANISATION_SETTINGS to execute this call.

Tags

Users

Rate limiting

60 requests/60 seconds

Authorizations
AuthorizationstringRequired
Responses
200

Successful response

application/json
get/api/v1/serviceAccounts/defaultResponsibilities
GET /api/v1/serviceAccounts/defaultResponsibilities HTTP/1.1
Host: cloud.soda.io
Authorization: Basic username:password
Accept: */*
{
  "assignments": [
    {
      "role": {
        "deleteServiceAccount": true,
        "id": "text",
        "managePermissions": true,
        "name": "text",
        "viewServiceAccount": true
      },
      "type": "user",
      "userGroupId": "text",
      "userId": "text"
    }
  ]
}

Update the default service account responsibilities

post
/api/v1/serviceAccounts/defaultResponsibilities

This endpoint updates the organization-wide defaults that Soda applies to every newly created service account.

Note: assignments fully replaces the current list, so send every assignment you want to keep, or an empty list to remove every assignment. A request carries at most 1000 assignments.

Existing service accounts keep the responsibilities they already have.

It is available once service account roles are enabled for the organization.

Authorization

Only users with the Manage organization settings permission can update the default service account responsibilities.

Authentication

User authentication required: true

This endpoint accepts authentication via API keys in the Basic authentication header, or a pre-authenticated token in HTTP cookie token. Cookie sessions extend automatically on each request.

Authorization

Users must have global role permission MANAGE_ORGANISATION_SETTINGS to execute this call.

Auditable

This API is marked as audited on execution.

Tags

Users

Rate limiting

60 requests/60 seconds

Authorizations
AuthorizationstringRequired
Body
Responses
200

Successful response

application/json
post/api/v1/serviceAccounts/defaultResponsibilities
POST /api/v1/serviceAccounts/defaultResponsibilities HTTP/1.1
Host: cloud.soda.io
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 86

{
  "assignments": [
    {
      "roleId": "text",
      "type": "user",
      "userGroupId": "text",
      "userId": "text"
    }
  ]
}
{
  "assignments": [
    {
      "role": {
        "deleteServiceAccount": true,
        "id": "text",
        "managePermissions": true,
        "name": "text",
        "viewServiceAccount": true
      },
      "type": "user",
      "userGroupId": "text",
      "userId": "text"
    }
  ]
}

List service account roles

get
/api/v1/serviceAccounts/roles

This endpoint lists the service account roles available in your organization's Soda Cloud account. Use them to manage access to individual service accounts.

It is available once service account roles are enabled for the organization.

This GET is a paginated API that uses the following parameters to request specific details:

  • size: Supply an integer value between 10 and 100, inclusive. The default value is 100.

  • page: Supply an integer value. The default value is 0.

Authentication

User authentication required: true

This endpoint accepts authentication via API keys in the Basic authentication header, or a pre-authenticated token in HTTP cookie token. Cookie sessions extend automatically on each request.

Authorization

Any Soda Cloud user in your organization may execute this query.

Tags

Users

Rate limiting

60 requests/60 seconds

Authorizations
AuthorizationstringRequired
Query parameters
pageinteger · int32Optional
sizeinteger · int32Optional
Responses
200

Successful response

application/json
firstbooleanRequired
lastbooleanRequired
numberinteger · int32Required
sizeinteger · int32Required
totalElementsinteger · int32Required
totalPagesinteger · int32Required
get/api/v1/serviceAccounts/roles
GET /api/v1/serviceAccounts/roles HTTP/1.1
Host: cloud.soda.io
Authorization: Basic username:password
Accept: */*
{
  "content": [
    {
      "deleteServiceAccount": true,
      "id": "text",
      "managePermissions": true,
      "name": "text",
      "viewServiceAccount": true
    }
  ],
  "first": true,
  "last": true,
  "number": 1,
  "size": 1,
  "totalElements": 1,
  "totalPages": 1
}

List service account responsibilities

get
/api/v1/serviceAccounts/{serviceAccountId}/responsibilities

This endpoint lists the users and user groups that hold a role on a service account in your organization's Soda Cloud account, and the role each of them holds.

It is available once service account roles are enabled for the organization.

This GET is a paginated API that uses the following parameters to request specific details:

  • size: Supply an integer value between 1 and 100, inclusive. The default value is 100.

  • page: Supply an integer value. The default value is 0.

Authorization

Soda only returns the responsibilities of a service account the user has View service account permission on; any other service account answers 404. Soda Cloud Admins can view every service account.

Authentication

User authentication required: true

This endpoint accepts authentication via API keys in the Basic authentication header, or a pre-authenticated token in HTTP cookie token. Cookie sessions extend automatically on each request.

Tags

Users

Rate limiting

100 requests/60 seconds

Authorizations
AuthorizationstringRequired
Path parameters
serviceAccountIdstringRequired
Query parameters
pageinteger · int32Optional
sizeinteger · int32Optional
Responses
200

Successful response

application/json
firstbooleanRequired
lastbooleanRequired
numberinteger · int32Required
sizeinteger · int32Required
totalElementsinteger · int32Required
totalPagesinteger · int32Required
get/api/v1/serviceAccounts/{serviceAccountId}/responsibilities
GET /api/v1/serviceAccounts/{serviceAccountId}/responsibilities HTTP/1.1
Host: cloud.soda.io
Authorization: Basic username:password
Accept: */*
{
  "content": [
    {
      "role": {
        "deleteServiceAccount": true,
        "id": "text",
        "managePermissions": true,
        "name": "text",
        "viewServiceAccount": true
      },
      "type": "user",
      "userGroupId": "text",
      "userId": "text"
    }
  ],
  "first": true,
  "last": true,
  "number": 1,
  "size": 1,
  "totalElements": 1,
  "totalPages": 1
}

Update service account responsibilities

post
/api/v1/serviceAccounts/{serviceAccountId}/responsibilities

This endpoint sets the users and user groups that hold a role on a service account in your organization's Soda Cloud account, and the role each of them holds.

It is available once service account roles are enabled for the organization.

Note: This API fully replaces the existing responsibilities. The entire list of responsibilities must be provided in the request, including both new and existing entries, as any omissions will result in their removal. A request carries at most 1000 responsibilities.

The Response of this call, when successful, is 201 and contains header Location which identifies the URL where the responsibilities are available.

Authorization

Users need the Manage responsibilities permission on the service account, or the global permission Manage organization settings. A service account the user cannot view answers 404.

Authentication

User authentication required: true

This endpoint accepts authentication via API keys in the Basic authentication header, or a pre-authenticated token in HTTP cookie token. Cookie sessions extend automatically on each request.

Auditable

This API is marked as audited on execution.

Tags

Users

Rate limiting

100 requests/60 seconds

Authorizations
AuthorizationstringRequired
Path parameters
serviceAccountIdstringRequired
Body
Responses
201

Created

post/api/v1/serviceAccounts/{serviceAccountId}/responsibilities
POST /api/v1/serviceAccounts/{serviceAccountId}/responsibilities HTTP/1.1
Host: cloud.soda.io
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 91

{
  "responsibilities": [
    {
      "roleId": "text",
      "type": "user",
      "userGroupId": "text",
      "userId": "text"
    }
  ]
}

No content

Get user groups

get
/api/v1/userGroups

This endpoint enables you to gather information about the user groups in your organization's Soda Cloud account, including lists of members.

This GET is a paginated API that uses the following parameters to request specific details:

  • size: Supply an integer value between 10 and 1000, inclusive. The default value is 1000.

  • page: Supply an integer value. The default value is 0.

  • search: Optionally, use this parameter to perform a fuzzy search on the user group name.

If not specified, the query gathers information for all user groups in the account and sorts the results by user group name in ascending order.

Authentication

User authentication required: true

This endpoint accepts authentication via API keys in the Basic authentication header, or a pre-authenticated token in HTTP cookie token. Cookie sessions extend automatically on each request.

Authorization

Any Soda Cloud user in your organization may execute this query.

Tags

Users

Rate limiting

60 requests/60 seconds

Authorizations
AuthorizationstringRequired
Query parameters
pageinteger · int32Optional
searchstringOptional
sizeinteger · int32Optional
Responses
200

Successful response

application/json
firstbooleanRequired
lastbooleanRequired
numberinteger · int32Required
sizeinteger · int32Required
totalElementsinteger · int32Required
totalPagesinteger · int32Required
get/api/v1/userGroups
GET /api/v1/userGroups HTTP/1.1
Host: cloud.soda.io
Authorization: Basic username:password
Accept: */*
{
  "content": [
    {
      "label": "text",
      "name": "text",
      "userGroupId": "text",
      "users": [
        {
          "email": "text",
          "firstName": "text",
          "fullName": "text",
          "lastName": "text",
          "userId": "text"
        }
      ]
    }
  ],
  "first": true,
  "last": true,
  "number": 1,
  "size": 1,
  "totalElements": 1,
  "totalPages": 1
}

Create user group

post
/api/v1/userGroups

This endpoint enables you to create a new user group in your organization's Soda Cloud account.

The Response of this call, when successful, is 201 and contains headers Location which is a reference to the newly created User Group.

Authorization

Only users with Manage organization settings permission can update user groups.See Manage global roles for more information.

Authentication

User authentication required: true

This endpoint accepts authentication via API keys in the Basic authentication header, or a pre-authenticated token in HTTP cookie token. Cookie sessions extend automatically on each request.

Authorization

Users must have global role permission MANAGE_ORGANISATION_SETTINGS to execute this call.

Tags

Users

Rate limiting

60 requests/60 seconds

Authorizations
AuthorizationstringRequired
Body
namestringRequired
userIdsstring[]Optional
Responses
200

Successful response

post/api/v1/userGroups
POST /api/v1/userGroups HTTP/1.1
Host: cloud.soda.io
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 34

{
  "name": "text",
  "userIds": [
    "text"
  ]
}

No content

Get user group

get
/api/v1/userGroups/{userGroupId}

This endpoint enables you to gather information about a single user group in your organization's Soda Cloud account, including lists of members.

This GET is a non-paginated API that returns a single organization based on its ID.

Authentication

User authentication required: true

This endpoint accepts authentication via API keys in the Basic authentication header, or a pre-authenticated token in HTTP cookie token. Cookie sessions extend automatically on each request.

Authorization

Any Soda Cloud user in your organization may execute this query.

Tags

Users

Rate limiting

60 requests/60 seconds

Authorizations
AuthorizationstringRequired
Path parameters
userGroupIdstringRequired
Responses
200

Successful response

application/json
labelstringRequired

Display name of the user group. Equals name unless the user group has been given a label.

namestringRequired
userGroupIdstringRequired
get/api/v1/userGroups/{userGroupId}
GET /api/v1/userGroups/{userGroupId} HTTP/1.1
Host: cloud.soda.io
Authorization: Basic username:password
Accept: */*
{
  "label": "text",
  "name": "text",
  "userGroupId": "text",
  "users": [
    {
      "email": "text",
      "firstName": "text",
      "fullName": "text",
      "lastName": "text",
      "userId": "text"
    }
  ]
}

Update user group

post
/api/v1/userGroups/{userGroupId}

This endpoint enables you to update an existing user group in your organization's Soda Cloud account.

The Response of this call, when successful, is 200 and contains updated User Group details.

Authorization

Only users with Manage organization settings permission can update user groups.See Manage global roles for more information.

Authentication

User authentication required: true

This endpoint accepts authentication via API keys in the Basic authentication header, or a pre-authenticated token in HTTP cookie token. Cookie sessions extend automatically on each request.

Authorization

Users must have global role permission MANAGE_ORGANISATION_SETTINGS to execute this call.

Tags

Users

Rate limiting

60 requests/60 seconds

Authorizations
AuthorizationstringRequired
Path parameters
userGroupIdstringRequired
Body
userIdsstring[]Optional
Responses
200

Successful response

application/json
labelstringRequired

Display name of the user group. Equals name unless the user group has been given a label.

namestringRequired
userGroupIdstringRequired
post/api/v1/userGroups/{userGroupId}
POST /api/v1/userGroups/{userGroupId} HTTP/1.1
Host: cloud.soda.io
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 20

{
  "userIds": [
    "text"
  ]
}
{
  "label": "text",
  "name": "text",
  "userGroupId": "text",
  "users": [
    {
      "email": "text",
      "firstName": "text",
      "fullName": "text",
      "lastName": "text",
      "userId": "text"
    }
  ]
}

Delete user group

delete
/api/v1/userGroups/{userGroupId}

This endpoint enables you to delete an existing user group from your organization's Soda Cloud account.

In case of success, the response returns a 200 (OK) response.

In case user group is not found, the response returns a 404 (Not found) response.

Authorization

Only users with Manage organization settings permission can update user groups.See Manage global roles for more information.

Authentication

User authentication required: true

This endpoint accepts authentication via API keys in the Basic authentication header, or a pre-authenticated token in HTTP cookie token. Cookie sessions extend automatically on each request.

Authorization

Users must have global role permission MANAGE_ORGANISATION_SETTINGS to execute this call.

Tags

Users

Rate limiting

60 requests/60 seconds

Authorizations
AuthorizationstringRequired
Path parameters
userGroupIdstringRequired
Responses
200

Successful response

application/json
object · PublicApiDeleteUserGroupResponseOptional
delete/api/v1/userGroups/{userGroupId}
DELETE /api/v1/userGroups/{userGroupId} HTTP/1.1
Host: cloud.soda.io
Authorization: Basic username:password
Accept: */*
{}

Get users

get
/api/v1/users

This endpoint enables you to gather information about the users in your organization's Soda Cloud account.

The list also contains the organization's service accounts; the userId of a service account is the serviceAccountId that the service account endpoints take.

This GET is a paginated API that uses the following parameters to request specific details:

  • size: Supply an integer value between 1 and 1000, inclusive. The default value is 1000.

  • page: Supply an integer value. The default value is 0.

  • includeDisabled: Optionally, set to true to include users that have been disabled in the organization. The default value is false.

  • search: Optionally, use this parameter to perform a fuzzy search on the user first name, last name, or email address.

If not specified, the query gathers information for all enabled users in the account, plus disabled users when includeDisabled=true, and sorts the results by user name in ascending order.

Authentication

User authentication required: true

This endpoint accepts authentication via API keys in the Basic authentication header, or a pre-authenticated token in HTTP cookie token. Cookie sessions extend automatically on each request.

Authorization

Any Soda Cloud user in your organization may execute this query.

Tags

Users

Rate limiting

60 requests/60 seconds

Authorizations
AuthorizationstringRequired
Query parameters
includeDisabledbooleanOptional
pageinteger · int32Optional
searchstringOptional
sizeinteger · int32Optional
Responses
200

Successful response

application/json
firstbooleanRequired
lastbooleanRequired
numberinteger · int32Required
sizeinteger · int32Required
totalElementsinteger · int32Required
totalPagesinteger · int32Required
get/api/v1/users
GET /api/v1/users HTTP/1.1
Host: cloud.soda.io
Authorization: Basic username:password
Accept: */*
{
  "content": [
    {
      "email": "text",
      "enabled": true,
      "firstName": "text",
      "fullName": "text",
      "lastName": "text",
      "userId": "text"
    }
  ],
  "first": true,
  "last": true,
  "number": 1,
  "size": 1,
  "totalElements": 1,
  "totalPages": 1
}

Invite users

post
/api/v1/users

This endpoint enables you to invite users to your organization's Soda Cloud account.

Invited users will receive an email with a link to set their password and join your organization in Soda Cloud. Once they complete the setup, they will have access to Soda Cloud based on the roles and permissions you assign.

If your organization is using SSO, invited users will receive an invitation email with a link to Soda Cloud. When they log in using SSO, they are immediately added to the Soda Cloud organization.

You can invite up to 10 users per request. The response contains lists of successful and failed invitations.

Authentication

User authentication required: true

This endpoint accepts authentication via API keys in the Basic authentication header, or a pre-authenticated token in HTTP cookie token. Cookie sessions extend automatically on each request.

Authorization

Users must have global role permission MANAGE_ORGANISATION_SETTINGS to execute this call.

Tags

Users

Rate limiting

10 requests/60 seconds

Authorizations
AuthorizationstringRequired
Body
emailsstring[]Required
Responses
200

Successful response

application/json
validInvitationsstring[]Optional
post/api/v1/users
POST /api/v1/users HTTP/1.1
Host: cloud.soda.io
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 19

{
  "emails": [
    "text"
  ]
}
{
  "failedInvitations": [
    {
      "email": "text",
      "error": "text"
    }
  ],
  "validInvitations": [
    "text"
  ]
}

Disable user

post
/api/v1/users/{userId}/disable

This endpoint disables a user in your organization's Soda Cloud account.

Disabling a user deactivates their membership in the organization. The user is not deleted and can be re-enabled later with the enable user endpoint.

Their active sessions are revoked immediately, so they can no longer sign in, including through SSO.

In organizations that provision users over SCIM, the identity provider stays the source of truth: a later sync that reports the user as active will re-enable them.

Authorization

Users need the global permission Manage organization settings. To disable a service account, the Deactivate service account permission on it is enough once service account roles are enabled; a service account the user cannot view is treated like an unknown user. Enabling it again always requires Manage organization settings.

Authentication

User authentication required: true

This endpoint accepts authentication via API keys in the Basic authentication header, or a pre-authenticated token in HTTP cookie token. Cookie sessions extend automatically on each request.

Auditable

This API is marked as audited on execution.

Tags

Users

Rate limiting

60 requests/60 seconds

Authorizations
AuthorizationstringRequired
Path parameters
userIdstringRequired
Responses
200

Successful response

application/json
object · PublicApiDisableUserResponseOptional
post/api/v1/users/{userId}/disable
POST /api/v1/users/{userId}/disable HTTP/1.1
Host: cloud.soda.io
Authorization: Basic username:password
Accept: */*
{}

Enable user

post
/api/v1/users/{userId}/enable

This endpoint re-enables a user in your organization's Soda Cloud account that was previously disabled.

Enabling a user reactivates their membership in the organization with the roles and group memberships they had before they were disabled. They can sign in again, including through SSO.

The list users endpoint returns disabled users only when you pass includeDisabled=true, and marks them with enabled: false.

In organizations that provision users over SCIM, the identity provider stays the source of truth: a later sync that reports the user as inactive will disable them again.

Authentication

User authentication required: true

This endpoint accepts authentication via API keys in the Basic authentication header, or a pre-authenticated token in HTTP cookie token. Cookie sessions extend automatically on each request.

Authorization

Users must have global role permission MANAGE_ORGANISATION_SETTINGS to execute this call.

Auditable

This API is marked as audited on execution.

Tags

Users

Rate limiting

60 requests/60 seconds

Authorizations
AuthorizationstringRequired
Path parameters
userIdstringRequired
Responses
200

Successful response

application/json
object · PublicApiEnableUserResponseOptional
post/api/v1/users/{userId}/enable
POST /api/v1/users/{userId}/enable HTTP/1.1
Host: cloud.soda.io
Authorization: Basic username:password
Accept: */*
{}

Last updated

Was this helpful?