DLApp
Il n'y a aucun service assortissant cette expression.

/user/add-user

Méthode de HTTP
POST
com.liferay.portal.service.UserServiceUtil#addUser

Adds a user.

This method handles the creation and bookkeeping of the user including its resources, metadata, and internal data structures. It is not necessary to make subsequent calls to any methods to setup default groups, resources, etc.

Paramètres

p_auth String

authentication token used to validate the request

companyId long

the primary key of the user's company

autoPassword boolean

whether a password should be automatically generated for the user

password1 java.lang.String

the user's password

password2 java.lang.String

the user's password confirmation

autoScreenName boolean

whether a screen name should be automatically generated for the user

screenName java.lang.String

the user's screen name

emailAddress java.lang.String

the user's email address

facebookId long

the user's facebook ID

openId java.lang.String

the user's OpenID

locale java.util.Locale

the user's locale

firstName java.lang.String

the user's first name

middleName java.lang.String

the user's middle name

lastName java.lang.String

the user's last name

prefixId int

the user's name prefix ID

suffixId int

the user's name suffix ID

male boolean

whether the user is male

birthdayMonth int

the user's birthday month (0-based, meaning 0 for January)

birthdayDay int

the user's birthday day

birthdayYear int

the user's birthday year

jobTitle java.lang.String

the user's job title

groupIds long[]

the primary keys of the user's groups

organizationIds long[]

the primary keys of the user's organizations

roleIds long[]

the primary keys of the roles this user possesses

userGroupIds long[]

the primary keys of the user's user groups

sendEmail boolean

whether to send the user an email notification about their new account

serviceContext com.liferay.portal.service.ServiceContext

the user's service context (optionally null). Can set the universally unique identifier (with the uuid attribute), asset category IDs, asset tag names, and expando bridge attributes for the user.

Type de retour

com.liferay.portal.model.User

the new user

Exception

com.liferay.portal.kernel.exception.PortalException
if the user's information was invalid, if the creator did not have permission to add users, or if the email address was reserved
com.liferay.portal.kernel.exception.SystemException
if a system exception occurred

Exécuter

String long
boolean
java.lang.String java.lang.String
boolean
java.lang.String java.lang.String long java.lang.String java.util.Locale java.lang.String java.lang.String java.lang.String int int
boolean
int int int java.lang.String long[] long[] long[] long[]
boolean