Type alias CreateRoleBody

CreateRoleBody: {
    create_own_access?: boolean;
    custom_attributes?: {
        [key: string]: string;
    };
    description?: string;
    is_delete_protected?: boolean;
    name: string;
    org_permissions?: OrgAccessPermissions;
    project_id?: string;
    project_permissions?: ProjectAccessPermissions;
    restricted_custom_attributes?: {
        [key: string]: string;
    };
    tags?: string[];
}

Type declaration

  • Optional create_own_access?: boolean

    If true, full access to the role is automatically created for the requester

  • Optional custom_attributes?: {
        [key: string]: string;
    }

    Custom attributes for this user

    • [key: string]: string
  • Optional description?: string

    Description of the role

  • Optional is_delete_protected?: boolean

    This must be set false before the role can be deleted

  • name: string

    Name of the role

  • Optional org_permissions?: OrgAccessPermissions

    Permissions for this role on the organization

  • Optional project_id?: string

    ID of the project the role is linked with, if any

  • Optional project_permissions?: ProjectAccessPermissions

    Permissions for this role on the project

  • Optional restricted_custom_attributes?: {
        [key: string]: string;
    }

    Custom attributes only admins can update

    • [key: string]: string
  • Optional tags?: string[]

    List of tags on this role