• Given a user or user id, return the roles the user has.

    Warning: Provides one layer deep of parents for each role, but no further.

    Parameters

    • user: UserId | User

      The user to get the roles for.

    Returns Promise<Role[]>

    A list of roles the user has.