hasRole
Checks if the specified user has the specified role.Parameters:request-Requestobject containing the parameters for the operation.Returns:Responseobject 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.NO_ERROR_IF_NOT_EXISTS: IfFALSEwill return an error if the providedroledoes not exist or is blank. IfTRUEthen it will returnFALSEforhasRole. Supported values:The default value isFALSE.ONLY_DIRECT: IfFALSEwill search recursively if theprincipalis a member ofrole. IfTRUEthenprincipalmust directly be a member ofrole. Supported values:The default value isFALSE.
Map.Returns:Responseobject containing the results of the operation.Throws:GPUdbException- if an error occurs during the operation.