DLApp
There are no services matching that phrase.

/role/has-user-role

HTTP Method
GET
com.liferay.portal.service.RoleServiceUtil#hasUserRole

Returns true if the user is associated with the named regular role.

Parameters

p_auth String

authentication token used to validate the request

userId long

the primary key of the user

companyId long

the primary key of the company

name java.lang.String

the name of the role

inherited boolean

whether to include the user's inherited roles in the search

Return Type

boolean

true if the user is associated with the regular role; false otherwise

Exception

com.liferay.portal.kernel.exception.PortalException
if a role with the name could not be found in the company or if a default user for the company could not be found
com.liferay.portal.kernel.exception.SystemException
if a system exception occurred

Execute

String long long java.lang.String
boolean