Start permissions emulation

Start permissions emulation.

Emulation during emulation is not supported. If request sent during an ongoing emulation then 403 is sent in response.

Escalation is not supported.

SecuritySecretApiKey or JWT
Request
Request Body schema: application/json
permissions
required
Array of strings <operationId>

List of permissions to be emulated.

Responses
201

Session created.

Response Headers
Location
string <uri>

Location of the related resource.

Example: "https://api.rebilly.com/example"
Response Schema: application/json
permissions
required
Array of strings <operationId>

Permissions of the session. See the format in example. Use wildcard * for full access.

id
string <= 50 characters

ID of the session.

token
string

Authentication token of the session.

Array of objects (Membership)

Organizations of which the user is a member.

Array
required
object

Organization membership.

required
object

Membership user.

allowedIps
Array of strings or null <ip> (AllowedIps)

List of IP addresses that are permitted access. Private subnets are prohibited. To remove restrictions, set this value to null.

permissions
Array of strings <operationId>

Permissions that the user has within the organization. Use the wildcard character * for full access.

isOwner
boolean

Specifies whether the user is the owner of the organization.

isDefault
boolean

Specifies whether the organization is the default organization for the user.

roleIds
Array of strings

Role IDs associated with the user. Role IDs specify the roles that the user performs within the organization. For example, the user may be an organization admin.

Array of objects (Self) non-empty

Related links.

userId
string <= 50 characters

ID of the user.

createdTime
string <date-time> (CreatedTime)

Date and time which is set automatically when the resource is created.

updatedTime
string <date-time> (UpdatedTime)

Date and time which updates automatically when the resource is updated.

expiredTime
string <date-time>

Date and time when the session expired. Defaults to one hour.

Array of objects (Self) non-empty

Related links.

Array (non-empty)
href
required
string

Link URL.

rel
required
string

Type of link.

Value: "self"
401

Unauthorized access. Invalid credentials used.

403

Access forbidden.

422

Invalid data sent.

post/permissions-emulation
Request samples
application/json
{
  • "permissions": [
    ]
}
Response samples
application/json
{
  • "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
  • "token": "string",
  • "permissions": [
    ],
  • "memberships": [
    ],
  • "userId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
  • "createdTime": "2019-08-24T14:15:22Z",
  • "updatedTime": "2019-08-24T14:15:22Z",
  • "expiredTime": "2019-08-24T14:15:22Z",
  • "_links": [
    ]
}