auth/hasrole

Check if user has been granted a particular role

Parameters

NameRequiredDefaultDescriptionExample
roletrueN/Arole nameVMR Administrator
userNamefalseselfuserName to checkjsmith
userGroupIDfalseuserGroupID within which user privilege should be retrieved1
userGroupNamefalseuserGroupName from which data should be retrievedECM Matthew
projectIDfalseProject ID within which user privilege should be retrieved1
projectNamefalseProject Name from which data should be retrievedECM Matthew
includeRoleListfalsefalseInclude a list of roles for the usertrue
formatfalsespecified at session openresponse output format (json|xml|csv|gchart)json

Errors

{role} may not be null-4