Create User

Description

This operation is used to pre-create built-in or enterprise accounts within the portal. The provider parameter is used to indicate the type of user account.

NoteNote:

When Portal for ArcGIS is connected to an enterprise identity store, enterprise users sign into portal using their enterprise credentials. By default, new installations of Portal for ArcGIS do not allow accounts from an enterprise identity store to be registered to the portal automatically. Only users with accounts that have been pre-created can sign in to the portal. Alternatively, you can configure the portal to register enterprise accounts the first time the user connects to the website. See Update Security Configuration for details.

Request Parameters

Parameter

Details

username

The name of the user account.

User names cannot have more than 24 characters or fewer than 6 characters. They can only contain alphanumeric ASCII characters or underscores.

password

The password for the account. This is a required parameter only if the provider is arcgis; otherwise, the password parameter is ignored.

firstname

The first name for the user account.

NoteNote:

At versions previous to 10.4, the fullname parameter was used instead of a combination of firstname and last name.

lastname

The last name for the user account.

role

The role for the user account. The default value is org_user.

Values: org_user | org_publisher | org_admin

NoteNote:

Defining a custom role for the user is not supported. Instead, use the portal website or the CreateUsers command line utility to create users with custom roles.

level

The membership level for the account. The default value is Level 2.

email

The email address for the user account.

provider

The provider for the account. The default value is arcgis.

Values: arcgis | enterprise

idpUsername

The name of the user as stored by the enterprise user store. This parameter is only required if the provider parameter is enterprise.

description

An optional description string for the user account.

f

The response format. The default response format is html.

Values: html | json

Example Usage

https://server.domain.com/gis/portaladmin/security/users/createUser
username=jdoe@domain.com
firstname=John
lastname=Doe
role=org_publisher
level=2
email=jdoe@email.com
provider=enterprise
idpUsername=domain\jdoe
description=A publisher account for John Doe.
10/6/2017