loading
Preparing LoginRadius developer resources
Mission: Help enterprises accelerate digital transformation with our fully-managed Customer IAM technology.
Skip to main content

Roles and Permissions API's Route Improvement

Overview

This document provides a route mapping for LoginRadius Roles and Permissions APIs. It shows how legacy Roles and Permissions endpoints map to newer, more consistent routes, making it easier to manage roles and the permissions associated with them. Use this page as a migration reference when updating an existing integration to the newer Roles and Permissions routes.

What's changing

  • Legacy paths are being replaced with cleaner, resource-oriented endpoints (for example, /v2/manage/roles, /v2/manage/permissions).
  • Roles are now identified by an id rather than by roleName in the URL path.
  • Permissions are now a first-class resource: instead of attaching or detaching permissions through role-scoped endpoints, you create permissions via POST /v2/manage/permissions and then assign them to a role using PUT /v2/manage/roles/:id.

Roles APIs

Old MethodOld PathNew MethodNew PathDescription
GET/identity/v2/manage/roleGET/v2/manage/rolesGet the list of roles
POST/identity/v2/manage/rolePOST/v2/manage/rolesCreate a new role
DELETE/identity/v2/manage/role/:roleNameDELETE/v2/manage/roles/:idDelete a role
PUT/identity/v2/manage/role/:roleName/permissionPOST
PUT
/v2/manage/permissions
/v2/manage/roles/:id
Add permissions to a role
DELETE/identity/v2/manage/role/:roleName/permissionPUT/v2/manage/roles/:idRemove permissions from a role

Updating permissions on a role

To add or update permissions on a role, the workflow is now a two-step process:

  1. Create the permission using POST /v2/manage/permissions.
  2. Assign the permission to the role using PUT /v2/manage/roles/:id, referencing the permission(s) created in step 1.
  3. To remove permissions from a role use PUT /v2/manage/roles/:id and submit the updated permission set for that role.

Please reach out to LoginRadius Support for any further queries.