DLApp
There are no services matching that phrase.

/role/add-user-roles

HTTP Method
POST
com.liferay.portal.service.RoleServiceUtil#addUserRoles

Adds the roles to the user. The user is reindexed after the roles are added.

Parameters

p_auth String

authentication token used to validate the request

userId long

the primary key of the user

roleIds long[]

the primary keys of the roles

Return Type

void

Exception

com.liferay.portal.kernel.exception.PortalException
if a user with the primary key could not be found or if the user did not have permission to assign members to one of the roles
com.liferay.portal.kernel.exception.SystemException
if a system exception occurred

Execute

String long long[]