Skip to content

BIM API

Audience: System Administrators

Content Summary: This page details the bim API, which allows users to programmatically access information about users, their group memberships, and authentications. Most of the actions described here require ADMIN permissions.

Note

Additional fields may be included in some responses you receive; however, these attributes are for internal purposes and are therefore undocumented.

BIM Workflow

Because the BIM endpoint encompasses groups, users, and authentications, there are three workflows.

Users Workflow

  1. Create a new user.
  2. Manage your users.
  3. Review your users' information.
  4. Delete a user.

Groups Workflow

  1. Create a new group.
  2. Manage groups.
  3. Search groups.
  4. Delete a group.

Authenticate with the API Workflow

  1. Create an API Key.
  2. Authenticate with an API key.
  3. View tokens and API key information.
  4. Remove an API key.

Create a New User

Endpoint

Method Path Purpose
POST /bim/iam/bim/user Create a new BIM user.

Request Parameters

None.

Payload Parameters

Attribute Description Required
IAMID string The IAM ID. Yes
UserID string The new user's username. Yes
Password string The new user's password. No
Profile array Information on the new user's name and email. No
Permissions array Information on the new user's permissions. No

Response Parameters

Attribute Description
ID integer The user ID.
IAMID string The IAM ID.
UserID string The user's username.
BIMAuthorizations array The attributes and groups given to the user's BIM profile.
IAMAuthorizations array The attributes and groups given to the user's external IAM profile.
Authorizations array The user's groups and attributes.
Permissions array The user's permissions.
Profile array Details on the user including name, email, phone, about, location, organization, position, preferences, externalUserIds, scim, systemGenerated, id, createdAt, and updatedAt values.
LastLogin timestamp The date the user most recently logged into Immuta.
Disabled boolean If true, the user is disabled.
CreatedAt timestamp The date the user was created.
UpdatedAt timestamp The date the user was last updated.
NewUserLink string A link for the new user to log in and create a password.
EmailFailed boolean If true, the login email was unable to be sent to the user's provided email address.
EmailSent boolean If true, a login email was sent to the new user.

Request Example

This example request with the payload below will create a new BIM user with the username charlie.doe@immuta.com.

curl \
  --request POST \
  --header "Content-Type: application/json" \
  --header "Authorization: Bearer dea464c07bd07300095caa8" \
  --data @example-payload.json \
  https://demo.immuta.com/bim/iam/bim/user

Payload Example

{
  "iamid": "bim",
  "userid": "charlie.doe@immuta.com",
  "profile": {
    "name": "Charlie Doe",
    "email": "charlie.doe@immuta.com"
  },
  "permissions": []
}

Response Example

{
  "newUser": {
    "id": 18,
    "iamid": "bim",
    "userid": "charlie.doe@immuta.com",
    "bimAuthorizations": null,
    "iamAuthorizations": null,
    "authorizations": {},
    "permissions": ["CREATE_DATA_SOURCE_IN_PROJECT", "CREATE_PROJECT"],
    "profile": {
      "name": "Charlie Doe",
      "email": "charlie.doe@immuta.com",
      "phone": null,
      "about": null,
      "location": null,
      "organization": null,
      "position": null,
      "preferences": null,
      "externalUserIds": {},
      "scim": null,
      "systemGenerated": false,
      "id": 18,
      "createdAt": "2021-10-07T01:35:13.382Z",
      "updatedAt": "2021-10-07T01:35:13.382Z"
    },
    "authentication": null,
    "systemGenerated": false,
    "lastLogin": null,
    "lastExternalRefresh": "2021-10-07T01:35:13.000Z",
    "disabled": false,
    "createdAt": "2021-10-07T01:35:13.389Z",
    "updatedAt": "2021-10-07T01:35:13.389Z"
  },
  "newUserLink": "https://demo.immuta.com/login?token=******&userid=charlie.doe%40immuta.com&name=Charlie%20Doe",
  "emailFailed": false,
  "emailSent": false
}

Manage Users

Method Path Purpose
GET /bim/iam/{iamid}/user/authenticate Authenticate a user from a 3rd party identity provider.
POST /bim/iam/{iamid}/user/authenticate Authenticate a user using their username and password and proxying it to the specified IAM service.
PUT /bim/iam/{iamid}/user/{userid}/profile Update a specified user's profile.
DELETE /bim/iam/{iamid}/user/{userid}/permissions/{permission} Remove the specified user's permission.
PUT /bim/iam/{iamid}/user/{userid}/permissions Update the specified user's permissions.
PUT /bim/iam/{iamid}/user/{userid}/password Update the specified user's password.
PUT /bim/iam/{iamid}/user/{userid}/disable/{disable} Disable / enable the specified BIM user.
POST /bim/syncUsers Sync Users for external IAM.
PUT /bim/iam/{iamid}/user/{userid}/authorizations Update the specified user's attributes.

Authenticate a User from an Outside IAM

Endpoint

Method Path Purpose
GET /bim/iam/{iamid}/user/authenticate Authenticate a user from a 3rd-party identity provider.

Request Parameters

Attribute Description Required
IAMID string The IAM ID. Yes

Response Parameters

None.

Request Example

This example request

curl \
  --request POST \
  --header "Content-Type: application/json" \
  --header "Authorization: Bearer dea464c07bd07300095caa8" \
  https://demo.immuta.com/LDAPIAM/user/authenticate

Authenticate User with Username and Password

Endpoint

Method Path Purpose
POST /bim/iam/{iamid}/user/authenticate Authenticate a user using their username and password and proxying it to the specified IAM service.

Request Parameters

Attribute Description Required
IAMID string The IAM ID. Yes

Payload Parameters

Attribute Description Required
Username string The user's username for the IAM dictated in the request. Yes
Password string The user's password for the IAM dictated in the request. Yes

Response Parameters

Attribute Description
Authenticated boolean If true, the user has been successfully authenticated.
Token string The user's access token.
TokenExperation timestamp The date the token will expire.
ProfileID integer The user ID.

Request Example

This example request with the payload below will authenticate the user using the bim IAM.

curl \
  --request POST \
  --header "Content-Type: application/json" \
  --header "Authorization: Bearer dea464c07bd07300095caa8" \
  --data @example-payload.json \
  https://demo.immuta.com/bim/iam/bim/user/authenticate
Payload Example
{
  "username": "demo.user@immuta.com",
  "password": "********"
}

Response Example

{
  "authenticated": true,
  "token": "6913229***********0d3da",
  "tokenExpiration": "2021-09-29T19:12:51.467Z"
}

Update a User Profile

Endpoint

Method Path Purpose
PUT /bim/iam/{iamid}/user/{userid}/profile Update a specified user's profile.

Request Parameters

Attribute Description Required
IAMID string The IAM ID. Yes
UserID string The user's username. Yes

Payload Parameters

Attribute Description Required
IAMID string The IAM ID. No
UserID string The user's username. No
Email string The user email. No
Phone string The user phone number. No
SQLUser string The user's SQL username. No
About string Details about the user to be displayed on their profile. No
Location string The user's location. No
Organization string The user's organization. No
Position string The user's position. No
ExternalUserIDs array A list of the user's external usernames for hdfsUser, databricksUser, snowflakeUser, prestoUser, asaUser, redshiftUser, and teradataUser. No
Preferences array No
SCIM array No

Response Parameters

Attribute Description
Profile array Details information about the user including name, email, phone, about, location, organization, position, preferences, externalUserIds, scim, id, and the date of creation.
Permissions array A list of the user's permissions.
IAMID string The IAM ID.
UserID string The user's username.
Authorizations array The user's attributes and groups.
UpdatedAt timestamp The date the user was last updated.
Disabled boolean If true, the user is disabled.
LastLogin timestamp The date the user last logged in.
BIMAuthorizations array The attributes and groups given to the user's BIM profile.
IAMAuthorizations array The attributes and groups given to the user's external IAM profile.
HasLogin boolean If true, the user has logged into Immuta.

Request Example

This example request will change the location to Boston, MA for the user with the username jane.doe@immuta.com.

curl \
  --request PUT \
  --header "Content-Type: application/json" \
  --header "Authorization: Bearer dea464c07bd07300095caa8" \
  https://demo.immuta.com/bim/iam/bim/user/jane.doe@immuta.com/profile
Payload Example
{
  "email": "jane.doe@immuta.com",
  "phone": null,
  "about": null,
  "location": "Boston, MA",
  "organization": null,
  "position": "",
  "preferences": {
    "sortDataSourceState": {
      "column": "name",
      "order": "asc",
      "size": 12
    },
    "sortProjectDataSourceState": {
      "column": "dataSourceName",
      "order": "asc",
      "size": 12
    },
    "sortProjectState": {
      "column": "name",
      "order": "asc",
      "size": 12
    },
    "notifications": {
      "email": false
    },
    "tabDataSourceState": 0,
    "tabProjectState": 0,
    "dataSourceOverrides": {},
    "showPolicySearchDetailLabels": true
  },
  "externalUserIds": {},
  "scim": null,
  "systemGenerated": false,
  "iamid": "bim",
  "userid": "jane.doe@immuta.com"
}

Response Example

{
  "name": "Jane Doe",
  "email": "jane.doe@immuta.com",
  "phone": null,
  "about": null,
  "location": "Boston, MA",
  "organization": null,
  "position": null,
  "externalUserIds": {},
  "systemGenerated": false,
  "id": 2,
  "createdAt": "2021-08-16T20:30:43.698Z",
  "updatedAt": "2021-10-18T20:49:06.237Z",
  "preferences": {
    "sortProjectState": {
      "column": "name",
      "order": "asc",
      "size": 12
    },
    "currentProject": null,
    "sortDataSourceState": {
      "column": "name",
      "order": "asc",
      "size": 12
    },
    "sortProjectDataSourceState": {
      "column": "dataSourceName",
      "order": "asc",
      "size": 12
    },
    "notifications": {
      "email": false
    },
    "tabDataSourceState": 0,
    "tabProjectState": 0,
    "dataSourceOverrides": {},
    "showPolicySearchDetailLabels": true
  },
  "scim": null
}

Remove a User's Permissions

Endpoint

Method Path Purpose
DELETE /bim/iam/{iamid}/user/{userid}/permissions/{permission} Remove the specified user's permission.

Request Parameters

Attribute Description Required
IAMID string The IAM ID. Yes
UserID string The user's username. Yes
Permission string The permission to remove. See the Chapter 2 for a list of Immuta permissions. Yes

Response Parameters

Attribute Description
ID integer The user's ID.
IAMID string The IAM ID.
UserID string The user's username.
BIMAuthorizations array The attributes and groups given to the user's BIM profile.
IAMAuthorizations array The attributes and groups given to the user's external IAM profile.
Authorizations array Details on the user's groups and attributes.
Permissions array[string] A list of the user's permissions.
Profile integer The user's profile ID.
LastLogin timestamp The date the user last logged into Immuta.
Disabled boolean If true, the user is disabled.
CreatedAt timestamp The date the user was created.
UpdatedAt timestamp The date the user was last updated.

Request Example

This example request will delete the permission CREATE_DATA_SOURCE_IN_PROJECT from the user with the username john.doe@immuta.com.

curl \
  --request DELETE \
  --header "Content-Type: application/json" \
  --header "Authorization: Bearer dea464c07bd07300095caa8" \
  https://demo.immuta.com/bim/iam/bim/user/john.doe%40immuta.com/permissions/CREATE_DATA_SOURCE_IN_PROJECT

Response Example

{
  "id": 3,
  "iamid": "bim",
  "userid": "john.doe@immuta.com",
  "bimAuthorizations": null,
  "iamAuthorizations": null,
  "authorizations": {},
  "permissions": [
    "CREATE_PROJECT",
    "CREATE_DATA_SOURCE"
  ],
  "profile": 3,
  "authentication": 3,
  "systemGenerated": false,
  "lastLogin": "2021-09-27T15:29:00.154Z",
  "lastExternalRefresh": "2021-09-27T15:29:00.154Z",
  "disabled": false,
  "createdAt": "2021-08-19T19:33:38.582Z",
  "updatedAt": "2021-10-06T22:03:48.611Z"
}

Update a User's Permissions

Endpoint

Method Path Purpose
PUT /bim/iam/{iamid}/user/{userid}/permissions Update the specified user's permission.

Request Parameters

Attribute Description Required
IAMID string The IAM ID. Yes
UserID string The user's username. Yes

Request Parameters

Attribute Description Required
Permissions array[string] A list of the user's permissions. This list is going to be a comprehensive list of all of the user's permissions. See the Chapter 2 for a list of Immuta permissions. Yes

Response Parameters

Attribute Description
ID integer The user's ID.
IAMID string The IAM ID.
UserID string The user's username.
BIMAuthorizations array The attributes and groups given to the user's BIM profile.
IAMAuthorizations array The attributes and groups given to the user's external IAM profile.
Authorizations array Details on the user's groups and attributes.
Permissions array A list of the user's permissions.
Profile integer The user's profile ID.
LastLogin timestamp The date the user last logged into Immuta.
Disabled boolean If true, the user is disabled.
CreatedAt timestamp The date the user was created.
UpdatedAt timestamp The date the user was last updated.

Request Example

This example request with the payload below will change to permissions of the user with the username charlie.doe@immuta.com to CREATE_DATA_SOURCE_IN_PROJECT, CREATE_PROJECT, and CREATE_DATA_SOURCE.

curl \
  --request PUT \
  --header "Content-Type: application/json" \
  --header "Authorization: Bearer dea464c07bd07300095caa8" \
  https://demo.immuta.com/bim/iam/bim/user/charlie.doe%40immuta.com/permissions
Payload Example
[
  "CREATE_DATA_SOURCE_IN_PROJECT", "CREATE_PROJECT", "CREATE_DATA_SOURCE"
]

Response Example

{
  "id": 18,
  "iamid": "bim",
  "userid": "charlie.doe@immuta.com",
  "bimAuthorizations": null,
  "iamAuthorizations": null,
  "authorizations": {},
  "permissions": [
    "CREATE_DATA_SOURCE_IN_PROJECT",
    "CREATE_PROJECT",
    "CREATE_DATA_SOURCE"
  ],
  "profile": 18,
  "authentication": null,
  "systemGenerated": false,
  "lastLogin": null,
  "lastExternalRefresh": "2021-10-07T01:35:13.000Z",
  "disabled": false,
  "createdAt": "2021-10-07T01:35:13.389Z",
  "updatedAt": "2021-10-07T16:10:40.214Z"
}

Update a User's Password

Endpoint

Method Path Purpose
PUT /bim/iam/{iamid}/user/{userid}/password Update the specified user's password.

Request Parameters

Attribute Description Required
IAMID string The IAM ID. Yes
UserID string The user's username. Yes

Request Parameters

Attribute Description Required
OriginalPassword string The user's old password. Yes
Password string The user's new password. Yes

Response Parameters

Attribute Description
Success boolean If true, the user's password has been successfully changed to the new password.

Request Example

This example request with the payload below will change the password of the user with the ID jane.doe@immuta.com.

curl \
  --request PUT \
  --header "Content-Type: application/json" \
  --header "Authorization: Bearer dea464c07bd07300095caa8" \
  https://demo.immuta.com/bim/iam/bim/user/jane.doe%40immuta.com/password
Payload Example
{
  "originalPassword": "old********",
  "password": "new********"
}

Response Example

{
  "success": true
}

Disable or Enable a User

Endpoint

Method Path Purpose
PUT /bim/iam/{iamid}/user/{userid}/disable/{disable} Disable / enable the specified BIM user.

Request Parameters

Attribute Description Required
IAMID string The IAM ID. Yes
UserID string The user's username. Yes
Disable boolean If true, the user will be disabled. Yes

Response Parameters

Attribute Description
UserID string The user's username.
Disabled boolean If true, the user is disabled.

Request Example

This example request will disabled the user with the username jane.doe@immuta.com.

curl \
  --request PUT \
  --header "Content-Type: application/json" \
  --header "Authorization: Bearer dea464c07bd07300095caa8" \
  https://demo.immuta.com/bim/iam/bim/user/jane.doe%40immuta.com/disable/true

Response Example

{
  "userid": "jane.doe@immuta.com",
  "disabled": true
}

Sync Users from an External IAM

Endpoint

Method Path Purpose
POST /bim/syncUsers Sync users from an external IAM.

Request Parameters

None.

Payload Parameters

Attribute Description Required
IAMID string The external IAM ID. Yes

Response Parameters

None.

Request Example

This example request will sync the users from the specified external IAM with Immuta.

curl \
  --request POST \
  --header "Content-Type: application/json" \
  --header "Authorization: Bearer dea464c07bd07300095caa8" \
  --data @example-payload.json \
  https://demo.immuta.com/bim/syncUsers
Payload Example
{
  "iamid": "ldap"
}

Update a User's Attributes

Endpoint

Method Path Purpose
PUT /bim/iam/{iamid}/user/{userid}/authorizations/{attributeName}/{attributeValue} Update the specified user's attributes.

Request Parameters

Attribute Description Required
IAMID string The IAM ID. Yes
UserID string The user's username. Yes
AttributeName string The attribute name. Yes
AttributeValue string The attribute value. Yes

Response Parameters

Attribute Description
ID integer The user's ID.
IAMID string The IAM ID.
UserID string The user's username.
BIMAuthorizations array The attributes and groups given to the user's BIM profile.
IAMAuthorizations array The attributes and groups given to the user's external IAM profile.
Authorizations array Details on the user's groups and attributes.
Permissions array A list of the user's permissions.
Profile integer The user's profile ID.
LastLogin timestamp The date the user last logged into Immuta.
Disabled boolean If true, the user is disabled.
CreatedAt timestamp The date the user was created.
UpdatedAt timestamp The date the user was last updated.

Request Example

This example request will add the attribute Finance.Red Team to the user with the username jane.doe@immuta.com.

curl \
  --request PUT \
  --header "Content-Type: application/json" \
  --header "Authorization: Bearer dea464c07bd07300095caa8" \
  https://demo.immuta.com/bim/iam/bim/user/jane.doe@immuta.com/authorizations/Finance/Red%20Team

Response Example

{
  "id": 16,
  "iamid": "bim",
  "userid": "jane.doe@immuta.com",
  "bimAuthorizations": {
    "Finance": ["CFA", "Red Team"]
  },
  "iamAuthorizations": null,
  "authorizations": {
    "Finance": ["CFA", "Red Team"]
  },
  "permissions": ["CREATE_DATA_SOURCE_IN_PROJECT", "CREATE_PROJECT"],
  "profile": 16,
  "authentication": 5,
  "systemGenerated": false,
  "lastLogin": "2021-10-07T02:58:31.708Z",
  "lastExternalRefresh": "2021-10-07T02:58:31.708Z",
  "disabled": false,
  "createdAt": "2021-10-06T22:17:46.500Z",
  "updatedAt": "2021-10-18T17:09:53.711Z"
}

Review User Information

Method Path Purpose
GET /bim/iam Get a listing of configured IAM services.
GET /bim/user Administrative search over the aggregated view of all users.
GET /bim/rpc/user/current Get the currently logged in user's information.
GET /bim/iam/{iamid}/user/{id} Get the specified user's aggregated view.
GET /bim/iam/{iamid}/user/{userid}/profile Get the specified user's profile.
GET /bim/iam/{iamid}/user/{userid}/groups Get the specified user's list of groups.

Search All IAMs

Endpoint

Method Path Purpose
GET /bim/iam Get a listing of configured IAM services.

Query Parameters

None.

Response Parameters

Attribute Description
Id string The IAM ID.
DisplayName string The name displayed in Immuta and entered at the time of configuration.
Type string The identity provider type.
OAuth boolean When true, the IAM service uses OAuth framework for authorization.

Request Example

The request below will list all of the IAMs in use.

curl \
    --request GET \
      --header "Content-Type: application/json" \
    --header "Authorization: Bearer dea464c07bd07300095caa8" \
    https://demo.immuta.com/bim/iam

Response Example

[
  {
    "id": "bim",
    "displayName": "Immuta",
    "type": "built-in",
    "oauth": false
  },
  {
    "id": "oktaSamlIAM",
    "displayName": "Okta SAML",
    "type": "saml",
    "oauth": false
  },
  {
    "id": "ldap",
    "displayName": "LDAP",
    "type": "ldap"
  }
]

Search All Users

Endpoint

Method Path Purpose
GET /bim/user Administrative search over the aggregated view of all users.

Query Parameters

Attribute Description Required
Size integer The maximum number of records to return. The default is 25. No
Name string A partial name to match against user names. No
UserId string A partial ID to match against user IDs. No
Email string A partial email address to match against user email addresses. No
IAMId [array]string Optionally provide the IAM to filter the users. No
ExcludeSystemGenerated boolean If true, the results will exclude accounts automatically created for handlers that periodically crawl and ingest. No
ExcludeAdminAndGovernor boolean If true, Admin and Governor accounts will be excluded. No
ExcludeDeletedIAMs boolean If true, the results will exclude users for any IAMs that are no longer configured. No
ExcludeBIM boolean If true, users from the Immuta internal identity manager will be excluded. No
IncludeDisabled boolean If true, the results will include disabled users. No
Offset integer Offset to start returning values. No
SortField string The field to sort results on. The default is user name. Possible values: name, createdAt, iamid, email. No
SortOrder string The order that the results will be sorted in. The default is asc. Possible values: asc, desc. No
Permission string A permission to filter the users by. No

Response Parameters

Attribute Description
Count integer Total number of results. May be greater than the length of hits if additional results exist. Use size and offset to page additional results.
Hits metadata Details for each result including id, iamid, userid, bimAuthorizations, iamAuthorizations, authorizations, projectId, permissions, groupPermissions, profile, authentication, systemGenerated, lastLogin, lastExternalRefresh, disabled, hasLogin, groups, createdAt, updatedAt, and schema values.
Id integer The user ID.
IAMId string The ID of the IAM the user is connected to.
UserId string The user's username.
BIMAuthorizations array The attributes and groups given to the user's BIM profile.
IAMAuthorizations array The attributes and groups given to the user's external IAM profile.
Authorizations metadata Details on the user's attributes.
ProjectId integer The project ID for the user's current project.
Permissions string A list of the user's permissions.
Profile metadata Details on the user including name, email, phone, about, location, organization, position, preferences, externalUserIds, scim, systemGenerated, id, createdAt, and updatedAt values.
LastLogin timestamp The date of the user's last Immuta login.
Disabled boolean If true, the user has been disabled.
HasLogin boolean If true, the user has logged into Immuta.
Groups metadata Information on the user's groups.
CreatedAt timestamp The date the user was created.
UpdatedAt timestamp The date of the last time the user's information was updated.

Example Request

The request below will search all of the users in Immuta.

curl \
    --request GET \
    --header "Content-Type: application/json" \
    --header "Authorization: Bearer dea464c07bd07300095caa8" \
    https://demo.immuta.com/bim/user?size=25&name=bar&sortOrder=asc

Example Response

{
  "count": "2",
  "hits": [
    {
      "id": 18,
      "iamid": "bim",
      "userid": "bspringer@immuta.com",
      "permissions": [
        "CREATE_DATA_SOURCE",
        "CREATE_PROJECT"
      ],
      "profile": {
        "name": "Barrett Springer",
        "email": "bspringer@immuta.com",
        "id": 18,
        "createdAt": "2018-07-05T07:37:06.569Z",
        "updatedAt": "2018-07-05T07:37:06.569Z"
      },
      "authentication": 18,
      "systemGenerated": false,
      "lastLogin": "2018-07-05T07:39:56.365Z",
      "disabled": false,
      "createdAt": "2018-07-05T07:37:05.987Z",
      "updatedAt": "2018-07-05T07:37:05.987Z"
    },
    {
      "id": 5,
      "iamid": "bim",
      "userid": "bhoward@immuta.com",
      "authorizations": {
        "auth": [
          "SOMETHING_ELSE"
        ]
      },
      "permissions": [
        "CREATE_DATA_SOURCE",
        "CREATE_PROJECT",
        "AUDIT"
      ],
      "profile": {
        "name": "Barry Howard",
        "email": "bhoward@immuta.com",
        "preferences": {
          "sortDataSourceState": {
            "column": "name",
            "order": "asc",
            "size": 12
          },
          "sortProjectState": {
            "column": "name",
            "order": "asc",
            "size": 12
          }
        },
        "id": 5,
        "createdAt": "2018-07-05T07:37:06.392Z",
        "updatedAt": "2018-07-05T22:32:43.864Z"
      },
      "authentication": 5,
      "systemGenerated": false,
      "lastLogin": "2018-07-05T22:32:44.167Z",
      "disabled": false,
      "createdAt": "2018-07-05T07:37:05.818Z",
      "updatedAt": "2018-07-05T07:37:05.818Z"
    }
  ]
}

View Current User's Information

Endpoint

Method Path Purpose
GET /bim/rpc/user/current Get the currently logged in user's information.

Query Parameters

None.

Response Parameters

Attribute Description
Id integer The user ID.
IAMId string The ID of the IAM the user is connected to.
UserId string The user's username.
BIMAuthorizations array The attributes and groups given to the user's BIM profile.
IAMAuthorizations array The attributes and groups given to the user's external IAM profile.
Authorizations metadata Details on the user's attributes.
ProjectId integer The project ID for the user's current project.
Permissions string A list of the user's permissions.
Profile metadata Details on the user including name, email, phone, about, location, organization, position, preferences, externalUserIds, scim, systemGenerated, id, createdAt, and updatedAt values.
LastLogin timestamp The date of the user's last Immuta login.
Disabled boolean If true, the user has been disabled.
HasLogin boolean If true, the user has logged into Immuta.
Groups metadata Information on the user's groups.
CreatedAt timestamp The date the user was created.
UpdatedAt timestamp The date of the last time the user's information was updated.

Example Request

This request will return information on the user that is logged in.

curl \
    --request GET \
    --header "Content-Type: application/json" \
    --header "Authorization: Bearer dea464c07bd07300095caa8" \
    https://demo.immuta.com/bim/rpc/user/current

Example Response

{
  "profile": {
    "name": "Barrett Springer",
    "email": "bspringer@immuta.com",
    "phone": null,
    "about": null,
    "location": null,
    "organization": null,
    "position": null,
    "preferences": null,
    "hdfsUser": null,
    "id": 18,
    "createdAt": "2018-07-05T07:37:06.569Z",
    "updatedAt": "2018-07-05T07:37:06.569Z"
  },
  "permissions": [
    "CREATE_DATA_SOURCE",
    "CREATE_PROJECT"
  ],
  "authorizations": {
    "Roles": [
      "Analyst"
    ],
    "Location": [
      "Columbus"
    ]
  },
  "iamid": "bim",
  "userid": "bspringer@immuta.com",
  "authorizations": null,
  "updatedAt": "2018-07-05T07:37:05.987Z",
  "systemGenerated": false,
  "disabled": false,
  "hasLogin": true,
  "lastLogin": "2018-07-05T07:39:56.365Z"
}

View a User's Information

Endpoint

Method Path Purpose
GET /bim/iam/{iamid}/user/{id} Gets the specified user's aggregated view.

Request Parameters

Attribute Description Required
IAMID string The IAM ID. Yes
ID integer The user ID. Yes
Params query No

Response Parameters

Attribute Description
Profile array Details about the user including name, email, phone, about, location, organization, position, preferences, externalUserIds, scim, id, and the date of creation.
Preferences array Information about the user's tabDataSourceState, tabProjectState, sortDataSourceState, and currentProject.
Permissions array A list of the user's permissions.
IAMID string The IAM ID.
UserID string The user's username.
Authorizations array The user's attributes and groups.
UpdatedAt timestamp The date the user was last updated.
SystemGenerated boolean
Disabled boolean If true, the user is disabled.
LastLogin timestamp The date the user last logged in.
LastExternalRefresh timestamp
BIMAuthorizations array The attributes and groups given to the user's BIM profile.
IAMAuthorizations array The attributes and groups given to the user's external IAM profile.
HasLogin boolean If true, the user has logged into Immuta.

Request Example

This example request will return information about the user with the ID 2.

curl \
  --request GET \
  --header "Content-Type: application/json" \
  --header "Authorization: Bearer dea464c07bd07300095caa8" \
  https://demo.immuta.com/bim/iam/bim/user/2

Response Example

{
  "profile": {
    "name": "John Doe",
    "email": "john.doe@immuta.com",
    "phone": null,
    "about": null,
    "location": null,
    "organization": null,
    "position": null,
    "preferences": {
      "sortProjectState": {
        "column": "name",
        "order": "asc",
        "size": 12
      },
      "currentProject": null
    },
    "externalUserIds": {},
    "scim": null,
    "systemGenerated": false,
    "id": 2,
    "createdAt": "2021-08-16T20:30:43.698Z",
    "updatedAt": "2021-09-14T01:17:02.786Z"
  },
  "permissions": [
    "CREATE_DATA_SOURCE_IN_PROJECT",
    "CREATE_PROJECT",
    "CREATE_DATA_SOURCE",
    "USER_ADMIN",
    "APPLICATION_ADMIN",
    "AUDIT",
    "GOVERNANCE",
    "IMPERSONATE_HDFS_USER",
    "CREATE_S3_DATASOURCE_WITH_INSTANCE_ROLE",
    "FETCH_POLICY_INFO",
    "CREATE_FILTER",
    "IMPERSONATE_USER",
    "PROJECT_MANAGEMENT"
  ],
  "iamid": "bim",
  "userid": "jane.doe@immuta.com",
  "authorizations": {},
  "updatedAt": "2021-09-29T17:57:09.059Z",
  "systemGenerated": false,
  "disabled": false,
  "lastLogin": "2021-09-30T19:20:03.327Z",
  "lastExternalRefresh": "2021-09-30T19:20:03.327Z",
  "bimAuthorizations": null,
  "iamAuthorizations": null,
  "hasLogin": true
}

View a User Profile

Endpoint

Method Path Purpose
GET /bim/iam/{iamid}/user/{userid}/profile Gets the specified user's profile.

Request Parameters

Attribute Description Required
IAMID string The IAM ID. Yes
ID integer The user ID. Yes

Response Parameters

Attribute Description
Name string The user's name.
Email string The user's email.
Phone string The user's phone number.
About string Details about the user.
Location string The user's location.
Organization string The user's organization.
Position string The user's position.
ExternalUserIDs array A list of user IDs for technologies outside of Immuta, if specified as different from the Immuta user ID.
CreatedAt timestamp The date the user was created.
UpdatedAt timestamp The date the profile was last updated.
Preferences array Information on the user's preferences including values for sortProjectState and currentProject.

Request Example

This example request will return the profile of the user with the ID 2.

curl \
  --request GET \
  --header "Content-Type: application/json" \
  --header "Authorization: Bearer dea464c07bd07300095caa8" \
  https://demo.immuta.com/bim/iam/bim/user/2/profile

Response Example

{
  "name": "John Doe",
  "email": "john.doe@immuta.com",
  "phone": null,
  "about": null,
  "location": null,
  "organization": null,
  "position": null,
  "preferences": {
    "sortProjectState": {
      "column": "name",
      "order": "asc",
      "size": 12
    },
    "currentProject": null
  },
  "externalUserIds": {},
  "scim": null,
  "systemGenerated": false,
  "id": 2,
  "createdAt": "2021-08-16T20:30:43.698Z",
  "updatedAt": "2021-09-14T01:17:02.786Z"
}

View a User's Groups

Endpoint

Method Path Purpose
GET /bim/iam/{iamid}/user/{userid}/groups Get the specified user's list of groups.

Request Parameters

Attribute Description Required
IAMID string The IAM ID. Yes
UserID string The user's username. Yes

Response Parameters

Attribute Description
ID integer The group ID.
Name string The group name.
IAMID string The IAM ID.
GroupUser integer The user's ID within the group.

Request Example

This example request will return information on the groups of the user with the username john.doe@immuta.com.

curl \
  --request GET \
  --header "Content-Type: application/json" \
  --header "Authorization: Bearer dea464c07bd07300095caa8" \
  https://demo.immuta.com/bim/iam/bim/user/john.doe%40immuta.com/groups

Response Example

[
  {
    "id": 2,
    "name": "API Group #2",
    "iamid": "bim",
    "groupUser": 6
  }
]

Delete a User

Endpoint

Method Path Purpose
DELETE /bim/iam/bim/ingest/user/{userid} Delete the specified user in Immuta.

Request Parameters

Attribute Description Required
X-User-API-Key string The API key of the user being deleted. Yes
UserID string The user's username. Yes

Response Parameters

Attribute Description
UserID string The user's username.
IAMID string The IAM ID.

Request Example

This example request will delete the user with the username charlie.doe@immuta.com.

curl \
  --request DELETE \
  --header "Content-Type: application/json" \
  --header "Authorization: Bearer dea464c07bd07300095caa8" \
  https://demo.immuta.com/bim/iam/bim/ingest/user/charlie.doe%40immuta.com

Response Example

{
  "userid": "charlie.doe@immuta.com",
  "iamid": "bim"
}

Create a New Group

Endpoint

Method Path Purpose
POST /bim/group Create a new group.

Query Parameters

None.

Payload Parameters

Attribute Description Required
IAMId string The IAM ID. Yes
Name string The new group name. Yes
Email string The new group's email. No
Description string The new group's description. No

Response Parameters

Attribute Description
ID integer The group ID.
IAMID string The IAM ID.
Name string The group name.
Email string The group email.
Authorizations array The group's attributes.
Description The group description.
CreatedAt timestamp The date the group was created.
UpdatedAt timestamp The date the group was last updated.

Request Example

This request with the payload below will create a group through the bim IAM with the name API Group.

curl \
    --request POST \
    --header "Content-Type: application/json" \
    --header "Authorization: Bearer dea464c07bd07300095caa8" \
    --data @example-payload.json \
    https://demo.immuta.com/bim/group

Payload Example

{
  "iamid": "bim",
  "name": "API Group"
}

Response Example

{
  "id": 3,
  "iamid": "bim",
  "name": "API Group",
  "gid": null,
  "email": null,
  "authorizations": null,
  "description": null,
  "scim": null,
  "scimid": null,
  "createdAt": "2021-09-29T15:15:26.615Z",
  "updatedAt": "2021-09-29T15:15:26.615Z"
}

Manage Groups

Method Path Purpose
PUT /bim/group/{groupId} Update the specified group.
DELETE /bim/group/{groupId}/user/{groupuserid} Remove a user from a group.
POST /bim/group/{groupId}/user Add a new user to a group.
PUT /bim/iam/{iamid}/group/{groupid}/authorizations Update the specified group's authorizations.

Update a Group

Endpoint

Method Path Purpose
PUT /bim/group/{groupId} Update the specified group.

Request Parameters

Attribute Description Required
GroupID integer The group ID. Yes

Payload Parameters

Attribute Description Required
Name string The group's new name. No
Email string The group's new email. No
Description string The group's new description. No

Response Parameters

Attribute Description
ID integer The group ID.
IAMID string The IAM ID.
Name string The group name.
Email string The group email.
Authorizations string The group attributes.
Description string The group description.
CreatedAt timestamp The date the group was created.
UpdatedAt timestamp The date the group was last updated.

Request Example

This request with the payload below will update the group with the ID 2 with the name API Group #2 and with a new description.

curl \
    --request PUT \
    --header "Content-Type: application/json" \
    --header "Authorization: Bearer dea464c07bd07300095caa8" \
    --data @example-payload.json \
    https://demo.immuta.com/bim/group/2
Payload Example
{
  "name": "API Group #2",
  "description": "This group was edited through the API"
}

Response Example

{
  "id": 2,
  "iamid": "bim",
  "name": "API Group #2",
  "gid": null,
  "email": "blue.team@immuta.com",
  "authorizations": {
    "Finance": [
      "CFA"
    ]
  },
  "description": "This group was edited through the API",
  "scim": null,
  "scimid": null,
  "createdAt": "2021-09-16T17:24:55.066Z",
  "updatedAt": "2021-09-29T17:32:07.725Z"
}

Remove a User from a Group

Endpoint

Method Path Purpose
DELETE bim/group/{groupId}/user/{groupuserid} Remove a user from a group.

Request Parameters

Attribute Description Required
GroupID integer The group ID. Yes
GroupUserID integer The user's group ID. Yes

Response Parameters

None.

Request Example

curl \
    --request DELETE \
    --header "Content-Type: application/json" \
    --header "Authorization: Bearer dea464c07bd07300095caa8" \
    https://demo.immuta.com/bim/group/1/user/2

Add a User to a Group

Endpoint

Method Path Purpose
POST bim/group/{groupId}/user Add a new user to a group.

Request Parameters

Attribute Description Required
GroupID integer The group ID. Yes

Payload Parameters

Attribute Description Required
UserID string The new user's ID. Yes
IAMID string The new user's IAM. Yes

Response Parameters

Attribute Description
ID integer The user's group ID.
Group integer The group ID.
Profile integer The user ID.
CreatedAt timestamp The date the user was added to the group.
UpdatedAt timestamp The date the user was last updated within the group.

Request Example

This request with the payload below adds the user with the ID 2 to the group with the ID 2.

curl \
    --request POST \
    --header "Content-Type: application/json" \
    --header "Authorization: Bearer dea464c07bd07300095caa8" \
    --data @example-payload.json \
    https://demo.immuta.com/bim/group/2/user
Payload Example
{
  "userid": "2",
  "iamid": "bim"
}

Response Example

{
  "id": 6,
  "group": 2,
  "profile": 2,
  "createdAt": "2021-09-29T17:57:09.054Z",
  "updatedAt": "2021-09-29T17:57:09.054Z"
}

Update a Group's Attributes

Endpoint

Method Path Purpose
PUT /bim/iam/{iamid}/group/{groupid}/authorizations/{attributeName}/{attributeValue} Update the specified group's attributes.

Request Parameters

Attribute Description Required
IAMID string The IAM ID. Yes
GroupID integer The group ID. Yes
AttributeName string The attribute name. Yes
AttributeValue string The attribute value. Yes

Response Parameters

Attribute Description
ID integer The group ID.
IAMID string The IAM ID.
Name string The group name.
Email string The group email.
Authorizations string The group attributes.
Description string The group description.
CreatedAt timestamp The date the group was created.
UpdatedAt timestamp The date the group was last updated.

Request Example

This example request will add the attribute Finance.Red Team to the group with the ID 2.

curl \
    --request PUT \
    --header "Content-Type: application/json" \
    --header "Authorization: Bearer dea464c07bd07300095caa8" \
    https://demo.immuta.com/bim/iam/bim/group/2/authorizations/Finance/Red%20Team

Response Example

{
  "id": 2,
  "iamid": "bim",
  "name": "API Group #2",
  "gid": null,
  "email": "blue.team@immuta.com",
  "authorizations": {
    "Finance": ["CFA", "Red Team"]
  },
  "description": "This group was edited through the API",
  "scim": null,
  "scimid": null,
  "createdAt": "2021-09-16T17:24:55.066Z",
  "updatedAt": "2021-10-08T13:41:06.211Z"
}

Search Groups

Method Path Purpose
GET /bim/group Get the list of groups from all configured IAMs.
GET /bim/group/{groupId} Get the specified group.
GET /bim/group/{groupId}/user Get group users.

Search All Groups from All IAMs

Endpoint

Method Path Purpose
GET /bim/group Get the list of groups from all configured IAMs.

Query Parameters

Attribute Description Required
Name string A partial name to match against group names. No
UserId integer The user ID. This will return the groups that the user is a member of. No
IAMId string Optionally provide the IAM to filter the groups. No
Size integer The maximum number of records to return. The default is 25. No
Offset integer Offset to start returning values. No
SortField string The field to sort results on. Possible values: name, createdAt, iamid. Default is name. No
SortOrder string The order that the results will be sorted in. Possible values: asc, desc. The default is asc. No
NameOnly boolean If true, results will only return distinct group names. No

Response Parameters

Attribute Description
Count integer Total number of results. May be greater than the length of hits if additional results exist. Use size and offset to page additional results.
Hits metadata Details on each result, including id, iamid, name, gid, email, authorizations, description, scim, scimid, createdAt, and updatedAt values.
Id integer The group ID.
IAMId string The IAM ID.
Name string The name of the group.
Email string The group email.
Authorizations metadata Details on the group's attributes.
Descriptions string Details attached to the group.
CreatedAt timestamp The date the group was created.
UpdatedAt timestamp The date the group was last updated.

Example Request

This request will return all of the groups in Immuta.

curl \
    --request GET \
    --header "Content-Type: application/json" \
    --header "Authorization: Bearer dea464c07bd07300095caa8" \
    https://demo.immuta.com/bim/group?size=25&sortOrder=asc

Example Response

{
  "count": "3",
  "hits": [
    {
      "id": 2,
      "iamid": "bim",
      "name": "engineers",
      "gid": null,
      "email": "engineers@immuta.com",
      "authorizations": null,
      "description": null,
      "createdAt": "2018-07-05T07:37:07.209Z",
      "updatedAt": "2018-07-05T07:37:07.209Z"
    },
    {
      "id": 1,
      "iamid": "bim",
      "name": "founders",
      "gid": null,
      "email": null,
      "authorizations": null,
      "description": null,
      "createdAt": "2018-07-05T07:37:07.177Z",
      "updatedAt": "2018-07-05T07:37:07.177Z"
    },
    {
      "id": 20,
      "iamid": "bim",
      "name": "system administrators",
      "gid": null,
      "email": null,
      "authorizations": null,
      "description": null,
      "createdAt": "2018-07-05T07:37:07.595Z",
      "updatedAt": "2018-07-05T07:37:07.595Z"
    }
  ]
}

Search a Specific Group

Endpoint

Method Path Purpose
GET /bim/group/{groupid} Get the specified group.

Query Parameters

Attribute Description Required
GroupId integer The ID of the group. Yes

Response Parameters

Attribute Description
Id integer The group's ID.
IAMId string The IAM ID.
Name string The group's name.
Email string The group's email.
Authorizations metadata Details on the group's attributes.
Descriptions string The group's description.
CreatedAt timestamp The date the group was created.
UpdatedAt timestamp The date the group was last updated.

Example Request

This request will search for the group with the ID 2.

curl \
    --request GET \
    --header "Content-Type: application/json" \
    --header "Authorization: Bearer dea464c07bd07300095caa8" \
    https://demo.immuta.com/bim/group/2

Example Response

{
  "id": 2,
  "iamid": "bim",
  "name": "engineers",
  "gid": null,
  "email": "engineers@immuta.com",
  "authorizations": {
    "Location": [
      "College Park"
    ]
  },
  "description": null,
  "createdAt": "2018-07-05T07:37:07.209Z",
  "updatedAt": "2018-07-06T01:42:55.518Z"
}

Search a Group's Users

Endpoint

Method Path Purpose
GET /bim/group/{groupid}/user Get group users.

Query Parameters

Attribute Description Required
GroupId integer The ID of the group. Yes
Offset integer Offset to start returning values. No
Size integer The maximum number of records to return. The default is 25. No
SortOrder string The order that the results will be sorted in. Possible values: asc, desc. The default is asc. No

Response Parameters

Attribute Description
Count integer Total number of results. May be greater than the length of hits if additional results exist. Use size and offset to page additional results.
Hits metadata Details for each result, including id, group, profile, uid, iamid, userid, disabled, scim, scimid, createdAt, and updatedAt values.
Id integer The group ID.
IAMId string The ID of the IAM the user is connected to.
UserId string The user's username.
Profile metadata Details on the user, including iamid, userid, name, email, phone, about, location, organization, position, preferences, externalUserIds, scim, systemGenerated, id, createdAt, and updatedAt values.
Disabled boolean If true, the user has been disabled.
Group integer The group ID.
CreatedAt timestamp The date the user was created.
UpdatedAt timestamp The date of the last time the user's information was updated.

Example Request

This request will return information on the users in the group with the ID 2.

curl \
    --request GET \
    --header "Content-Type: application/json" \
    --header "Authorization: Bearer dea464c07bd07300095caa8" \
    https://demo.immuta.com/bim/group/2/user

Example Response

{
  "count": 2,
  "hits": [
    {
      "id": 1,
      "group": 2,
      "profile": {
        "name": "Willie Gomez",
        "email": "wgomez@immuta.com",
        "phone": null,
        "about": null,
        "location": null,
        "organization": null,
        "position": null,
        "preferences": {
          "tabDataSourceState": 1,
          "tabProjectState": 1
        },
        "hdfsUser": "wgomez",
        "id": 3,
        "createdAt": "2018-07-05T07:37:06.373Z",
        "updatedAt": "2018-07-05T07:37:06.373Z"
      },
      "createdAt": "2015-08-23T00:00:00.000Z",
      "updatedAt": "2018-07-05T07:37:07.283Z",
      "userid": "wgomez@immuta.com",
      "iamid": "bim"
    },
    {
      "id": 2,
      "group": 2,
      "profile": {
        "name": "Helen James",
        "email": "hjames@immuta.com",
        "phone": null,
        "about": null,
        "location": null,
        "organization": null,
        "position": null,
        "preferences": null,
        "hdfsUser": null,
        "id": 13,
        "createdAt": "2018-07-05T07:37:06.470Z",
        "updatedAt": "2018-07-05T07:37:06.470Z"
      },
      "createdAt": "2018-07-05T07:37:07.291Z",
      "updatedAt": "2018-07-05T07:37:07.291Z",
      "userid": "hjames@immuta.com",
      "iamid": "bim"
    }
  ]
}

Delete a Group

Endpoint

Method Path Purpose
DELETE /bim/group/{groupId} Delete the specified group.

Query Parameters

Attribute Description Required
GroupID integer The group ID. Yes

Response Parameters

None.

Request Example

This request will delete the group with the ID 3.

curl \
    --request DELETE \
    --header "Content-Type: application/json" \
    --header "Authorization: Bearer dea464c07bd07300095caa8" \
    https://demo.immuta.com/bim/group/3

Authenticate a User and Create a Project API Key

Endpoint

Method Path Purpose
POST /bim/apikey Authenticate the user and create a project API key.

Request Parameters

None.

Payload Parameters

Attribute Description Required
ProjectID integer The project ID. No
Name string The name to associate with the API key. No

The payload must have one or both of the two attributes above.

Response Parameters

Attribute Description
APIKey string The new API key.
KeyID integer The new API key's ID.
Project integer The project ID.
Name string The name of the API key.

Request Example

This example request with the payload below will authenticate the user Jane Doe in the project with the ID 1 and create a new API key for her.

curl \
  --request POST \
  --header "Content-Type: application/json" \
  --header "Authorization: Bearer dea464c07bd07300095caa8" \
  --data @example-payload.json \
  https://demo.immuta.com/bim/apikey

Payload Example

{
  "projectId": 1,
  "name": "My Project API Key"
}

Response Example

{
  "apikey": "******",
  "keyid": 334,
  "project": 1,
  "name": "My Project API Key",
  "context": null
}

Authenticate with an API Key

Method Path Purpose
POST /bim/apikey/authenticate Authenticate with the Immuta API using an API key.
POST /bim/apikey/impersonate Impersonate another user using an API key.

Authenticate a User with an API Key

Endpoint

Method Path Purpose
POST /bim/apikey/authenticate Authenticate with the Immuta API using an API key.

Request Parameters

None.

Payload Parameters

Attribute Description
APIKey string The API key.

Response Parameters

Attribute Description
Authenticated boolean If true, the user has been successfully authenticated.
Token string The user's access token.

Request Example

This example request will authenticate the user with the Immuta API.

curl \
  --request POST \
  --header "Content-Type: application/json" \
  --header "Authorization: Bearer dea464c07bd07300095caa8" \
  --data @example-payload.json \
  https://demo.immuta.com/bim/apikey/authenticate
Payload Example
{
  "apikey": "100874dyour-api-key-79aa38bbfe0e8c787"
}

Response Example

{
  "authenticated": true,
  "token": "be420************2745ea0307"
}

Impersonate a User with an API Key

Endpoint

Method Path Purpose
POST /bim/apikey/impersonate Impersonate another user using an API key.

Request Parameters

None.

Payload Parameters

Attribute Description
APIKey string The API key of the account with the user impersonation permission.
UserID string The username of the impersonated user.
IAMID string The IAM ID of the impersonated user.
ProjectID integer The project ID of the impersonated user.

Response Parameters

Attribute Description
Authenticated boolean If true, the user has been successfully authenticated.
Token string The user's access token.

Request Example

This example request will allow the requesting user to impersonate the user specified in example-payload.json.

curl \
  --request POST \
  --header "Content-Type: application/json" \
  --header "Authorization: Bearer dea464c07bd07300095caa8" \
  --data @example-payload.json \
  https://demo.immuta.com/bim/apikey/impersonate
Payload Example
{
  "apikey": "requesting-users-api-key",
  "userid": "user1@example.com",
  "iamid": "bim"
}

Response Example

{
  "authenticated": true,
  "token": "0753*************c61d2"
}

View Tokens and API Keys

Method Path Purpose
POST /bim/token Get information for a given token, should it exist.
GET /bim/iam/{iamid}/user/{userid}/apikeys Get metadata for all of the user's API Keys.

View Token Information

Endpoint

Method Path Purpose
POST /bim/token Get information for a given token, should it exist.

Request Parameters

None.

Payload Parameters

Attribute Description
Token string The access token.

Response Parameters

Attribute Description
ID integer The access token ID.
Type string The token type: bearer.
IAMID string The IAM ID.
UserID string The user's username.
Project integer If the token was generated using a project API key, this is the project ID.
Token string The access token.
Created timestamp The date the token was created.
LastUsed timestamp The date the token was last used.
Expiration timestamp The date the token will expire.
Name string The token name.
CreatedAt timestamp The date the token was created.
UpdatedAt timestamp The date the token was last updated.
Scopes string The scope of the token, such as impersonation.
ImpersonationUserID string The user ID of the impersonating user.
ImpersonationIAMID string The IAM ID of the impersonating user.

Request Example

This example request will return information on the access token in the payload.

curl \
  --request POST \
  --header "Content-Type: application/json" \
  --header "Authorization: Bearer dea464c07bd07300095caa8" \
  --data @example-payload.json \
  https://demo.immuta.com/bim/token
Payload Example
{
  "token": "48983da*********85220837d"
}

Response Example

{
  "id": 384,
  "type": "bearer",
  "iamid": "bim",
  "userid": "jane.doe@immuta.com",
  "project": null,
  "context": null,
  "token": "4898*********220837d",
  "created": "2021-10-15T03:59:03.000Z",
  "lastUsed": "2021-10-15T03:59:57.185Z",
  "expiration": "2021-10-15T04:59:57.185Z",
  "name": null,
  "application": null,
  "derivedFrom": null,
  "createdAt": "2021-10-15T03:59:03.562Z",
  "updatedAt": "2021-10-15T03:59:57.186Z",
  "scopes": null,
  "impersonationuserid": null,
  "impersonationiamid": null
}

View a User's API Keys

Endpoint

Method Path Purpose
GET /bim/iam/{iamid}/user/{userid}/apikeys Get metadata for all of the user's API keys.

Request Parameters

Attribute Description Required
IAMID string The IAM ID. Yes
UserID string The user's username. Yes

Response Parameters

Attribute Description
KeyID integer The API key ID.
Created timestamp The date the API key was created.
Project array Information on the project attached to the API key, including values for name, status, description, documentation, deleted, allowMaskedJoins, subscriptionType, subscriptionPolicy, equalization, snowflake, salt, type, schema, id, createdAt, updatedAt, workspace, createdBy, updatedBy, and schemaEvolutionId.
LastUsed timestamp The date the API key was last used.
Name string The API key name.

Request Example

This example request will return information on the API keys of the user with the username john.doe@immuta.com.

curl \
  --request GET \
  --header "Content-Type: application/json" \
  --header "Authorization: Bearer dea464c07bd07300095caa8" \
  https://demo.immuta.com/bim/iam/bim/user/john.doe%40immuta.com/apikeys

Response Example

[
  {
    "keyid": 323,
    "created": "2021-10-06T18:28:13.000Z",
    "project": {
      "projectKey": "Credit Payments",
      "name": "Credit Payments",
      "status": "open",
      "description": "This project contains all data sources under the schema, credit_payments, from admin@mariadb.demo-databases.prod.immuta.com:3306/credit_payments.",
      "documentation": "This is an automatically generated project that collects data sources under the schema, credit_payments, from admin@mariadb.demo-databases.prod.immuta.com:3306/credit_payments. When data sources in this schema are added to the system, they will automatically be added to this project.",
      "deleted": false,
      "allowMaskedJoins": false,
      "subscriptionType": "manual",
      "subscriptionPolicy": null,
      "equalization": null,
      "snowflake": null,
      "salt": "e0c4a8c5-2a5b-4488-9c43-cb3d816172f4",
      "type": "Schema",
      "schema": "credit_payments",
      "id": 3,
      "createdAt": "2021-09-09T17:06:39.839Z",
      "updatedAt": "2021-09-09T17:06:39.839Z",
      "workspace": null,
      "createdBy": 2,
      "updatedBy": 2,
      "schemaEvolutionId": 2
    },
    "lastUsed": "2021-10-06T18:28:13.341Z",
    "name": "Credit Payments",
    "context": null
  }
]

Delete an API Key

Endpoint

Method Path Purpose
DELETE /bim/apikey/{keyid} Delete an API key, all auth tokens issued using that API key, and generate a new API key.

Request Parameters

Attribute Description Required
KeyID integer The API key ID. Yes

Response Parameters

Attribute Description
RevokedTokens integer The number of tokens revoked.

Request Example

This example request will delete the API key with the ID 323, revoke all the auth tokens issued using that API key, and generate a new API key.

curl \
  --request DELETE \
  --header "Content-Type: application/json" \
  --header "Authorization: Bearer dea464c07bd07300095caa8" \
  https://demo.immuta.com/bim/apikey/323

Response Example

{
  "revokedTokens": 1
}