Skip to main content
  • hasRole

    public HasRoleResponse hasRole(HasRoleRequest request) throws GPUdbException
    Checks if the specified user has the specified role.
    Parameters:
    request - Request object containing the parameters for the operation.
    Returns:
    Response object containing the results of the operation.
    Throws:
    GPUdbException - if an error occurs during the operation.
  • hasRole

    public HasRoleResponse hasRole(String principal, String role, Map<String,String> options) throws GPUdbException
    Checks if the specified user has the specified role.
    Parameters:
    principal - Name of the user for which role membership is being checked. Must be an existing user. If blank, will use the current user. The default value is ”.
    role - Name of role to check for membership.
    options - Optional parameters.The default value is an empty Map.
    Returns:
    Response object containing the results of the operation.
    Throws:
    GPUdbException - if an error occurs during the operation.