Sirr

Manage ephemeral secrets with Sirr

Role → Create

AI-generated

Summary

Create a role in a specified organization.

Inputs

  • roleOrgId (required) — The organization ID where the role will be created
  • roleName (required) — Name of the role to create
  • rolePermissions (required) — Permission string defining the role's privileges (e.g., "rRlL")

Output shape

a single record representing the created role

The response contains the newly created role's details such as its ID and permissions.

Examples

Example 1: Create a read‑only role named "viewer"

roleOrgId=123 roleName=viewer rolePermissions=r

Example 2: Create an admin role in a specific org

roleOrgId=org-456 roleName=admin rolePermissions=rRlLP

Links

Discussion