Skip to main content

Privacera Platform

Privacera UserSync REST endpoints
:

When enabled, Privacera UserSync has REST API endpoints available to allow administrators to push users and groups that already exist in the UserSync cache to Privacera Portal.

Push users
POST - <UserSync_Host>:6086/api/pus/public/cache/load/users

The request body should contain a userList and/or ConnectorList. If no users and connectors are passed, all users will be pushed to Ranger.

Example request:

curl -X 'POST' \
  '<UserSync_Host>:6086/api/pus/public/cache/load/users' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
    "userList": ["User1", "User2"],
    "connectorList": ["AAD1","OKTA"]
}'

Parameter

Type

Description

userList

string array

List of users to be added to Privacera Portal.

connectorList

string array

All users associated with provided connector(s) will be pushed.

Responses:
  • 200 OK

  • 404 Not Found: If one or more Users or Connectors are not found, JSON response contains error message.

Push groups
POST - <UserSync_Host>:6086/api/pus/public/cache/load/groups

The request body should contain a groupList and/or connectorList. If no groups and connectors are passed, all users will be pushed to Ranger.

Example request:

curl -X 'POST' \
  '<UserSync_Host>:6086/api/pus/public/cache/load/groups' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
    "groupList": ["Group1", "Group2"],
    "connectorList": ["AAD1","OKTA"]
}'

Parameter

Type

Description

groupList

string array

List of groups to be added to Privacera Portal.

connectorList

string array

All groups associated with provided connector(s) will be pushed.

Responses:
  • 200 OK

  • 404 Not Found: If one or more Groups or Connectors are not found, JSON response contains error message.