Start Building

LastPass Developer Documentation

Show/hide navigation

Groups Provisioning API

This document offers instructions for consuming the LastPass Users provisioning API.  LastPass Groups 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 responses need to be extracted from the decrypted “Response.Value.Payload”

Here is the list of all methods:

POST /GetGroups

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

Example Request and Response in JSON:

Attribute Type Description
Size* Integer Number of Groups in each page  
Offset* Integer Offset count

Attribute Type Description
Succeeded* Boolean True if request processing is successful
Message* String Success message or error description
Value.Total Integer Total number of groups
Value.Items Array Array of groups

POST /AddGroup

Adds a group to the LastPass directory.

Example Request and Response in JSON:

Attribute Type Description
Name* String Group name. It needs to be a unique Group name for that Organizational Unit
OrganizationalUnit String Organizational Unit

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

POST /UpdateGroup

Updates an existing group in LastPass directory.

Example Request and Response in JSON:

Attribute Type Description
Guid* String Group identifier
Name* String Group name
OrganizationalUnit String Organizational Unit

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

POST /DeleteGroup

Deletes a group from LastPass directory. It takes group name 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 /AssignGroupMember

Assigns an existing User to a specific Group in LastPass directory.

Example Request and Response in JSON:

Attribute Type Description
GroupName* String

Group name

MemberName* String User’s primary email

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

POST /UnassignGroupMember

Removes a user from a Group in LastPass directory.

Example Request and Response in JSON:

Attribute Type Description
GroupName* String

Group name

MemberName* String User’s primary email

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

 

Copyright@2020LogMeIn, Inc. All Rights Reserved