Frodo Library - v5.0.0-65
    Preparing search index...

    Type Alias InternalSystemRole

    The internal system roles: openidm-admin, openidm-authorized, openidm-cert, openidm-prometheus, openidm-reg, openidm-tasks-manager and platform-provisioning. A role is an internal system role by its id (case does not matter), never by what it grants. The regular internal role functions (frodo.role) never read, list, export, write or delete these roles and refuse their ids; the functions of this module do, and only this module.

    type InternalSystemRole = {
        deleteInternalSystemRole(roleId: string): Promise<InternalRoleSkeleton>;
        readInternalSystemRole(roleId: string): Promise<InternalRoleSkeleton>;
        readInternalSystemRoles(): Promise<InternalRoleSkeleton[]>;
    }
    Index
    • Delete internal system role. The role is deleted when this function is asked to: nothing here asks whether the platform needs it, and no other function deletes it.

      Parameters

      • roleId: string

        internal system role id: one of the seven ids, openidm-admin, openidm-authorized, openidm-cert, openidm-prometheus, openidm-reg, openidm-tasks-manager and platform-provisioning (case does not matter; the request is sent with the listed spelling)

      Returns Promise<InternalRoleSkeleton>

      a promise that resolves to an internal role object

      If the role id is not one name (it is empty, . or .., or holds a slash, a backslash, ?, #, %, a control character or a lone surrogate, or starts or ends with a blank), or is not the id of an internal system role. Nothing is requested then.

    • Read internal system role

      Parameters

      • roleId: string

        internal system role id: one of the seven ids, openidm-admin, openidm-authorized, openidm-cert, openidm-prometheus, openidm-reg, openidm-tasks-manager and platform-provisioning (case does not matter)

      Returns Promise<InternalRoleSkeleton>

      a promise that resolves to an internal role object

      If the id is not the id of an internal system role (nothing is requested then), or the role cannot be read.

    • Read all internal system roles. Only the roles with one of the seven ids that the tenant holds are returned, in the order that the tenant lists them. The request is the one of frodo.role.readInternalRoles, which leaves these roles out.

      Returns Promise<InternalRoleSkeleton[]>

      a promise that resolves to an array of internal role objects