Skip to main content
Version: 2.0.0

Get / GetByKey

Get a single tenant role by Key, if such role exists.

Parameters

ctx - The context of the request.
roleKey - The key of the role.

Implementation

role, err := Permit.Api.Roles.Get(ctx, "role-key")

GetById

Get a single tenant role by ID, if such role exists.

Parameters

roleId - The id of the role. This can also be the role key.

Implementation

    role, err := Permit.Api.Roles.GetById(ctx, uuid.String())