DLApp
There are no services matching that phrase.

/role/has-user-roles

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

Returns true if the user has any one of the named regular roles.

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

names class java.lang.String[]

the names of the roles

inherited boolean

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

Return Type

boolean

true if the user has any one of the regular roles; false otherwise

Exception

com.liferay.portal.kernel.exception.PortalException
if any one of the roles with the names could not be found in the company or if the default user for the company could not be found
com.liferay.portal.kernel.exception.SystemException
if a system exception occurred

Execute

String long long class java.lang.String[]
boolean