Start Building

LastPass Developer Documentation

Show/hide navigation

Roles Provisioning API

This document offers instruction for consuming the LastPass Roles provisioning API. 

Since all the following endpoints are secured by Public Key cryptography in addition to the default TLS, you need to study the ‘Encryption’ part first.

All the requests need to be formatted as base64 and put inside “Request.Payload” parameter. All the response needs to be extracted from the decrypted ‘Response.Value.Payload’

Here is the list of all methods:

POST /GetRoles

Returns list of existing Roles and the total count of all the Roles from LastPass directory based on pagination attributes. 

Example Request and Response in JSON:

Attribute Type Description
Size* Integer Number of roles in each page   
Offset* Integer Offset number 

Attribute Type Description
Total* Integer Total roles
Items Array Array of Roles
Items.Id String Role ID
Items.Order Integer Order number 

POST /PostRole

Adds a Role to the LastPass directory. 

Example Request and Response in JSON:

Attribute Type Description
Id String Role ID
Name String Role name

Attribute Type Description
Succeeded* Boolean True if request processing is successful
Message* String Success message or error description

POST /DeleteRole

Deletes a role. It takes Role ID as a parameter.

Example Request and Response:

Attribute Type Description
Succeeded* Boolean True if request processing is successful
Message* String Success message or error description

POST /AssignToRole

Assigns existing Users and Groups to a specific Role.

Example Request and Response in JSON:

Attribute Type Description
Code String Role ID
Users Array Users primary emails
Groups Array Groups names

Attribute Type Description
Succeeded* Boolean True if request processing is successful
Message* String Success message or error description

POST /GetAssignedToRole

Returns Users and Groups who are assigned to the Role. It takes Role ID as a parameter.

Example Request and Response:

Attribute Type Description
Users* Array Users primary emails
Groups* Array Groups names

 

Copyright@2020LogMeIn, Inc. All Rights Reserved