Skip To Content

/securityPolicy/update: Update Security Policy

  • URL:https://[root]/portals/[portalID]/securityPolicy/update(POST only)
  • Version Introduced:10.4

Example usage

Below is a sample ArcGIS Online POST request for the update operation:


POST /sharing/rest/portals/0123456789ABCDEF/securityPolicy/update HTTP/1.1
Host: org.arcgis.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []

minLength=8&minUpper=&minLower=&minLetter=1&minDigit=1&minOther=&expirationInDays=&historySize=&f=pjson

Below is a sample ArcGIS Enterprise POST request for the update operation:


POST /webadaptor/sharing/rest/portals/0123456789ABCDEF/securityPolicy/update HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []

minLength=8&minUpper=&minLower=&minLetter=1&minDigit=1&minOther=&expirationInDays=&historySize=&f=pjson

Description

This operation updates the security policy of an organization. For example, you can use this operation to change the policy's password length, complexity, and history requirements for members with ArcGIS accounts.

Request parameters

ParameterDetails
minLength

Enforce a minimum character requirement. Value may be between 8-1000

Example

minLength=8
minUpper

Enforce a requirement to include at least one upper case character. Value may be null or at least 1.

Example

minUpper=1
minLower

Enforce a requirement to include at least one lower case character. Value may be null or at least 1.

Example

minLower=<null>
minLetter

Enforce a requirement to include at least one letter. Value may be null or at least 1.

Example

minLetter=2
minDigit

Enforce a requirement to include at least one number. Value may be null or at least 1.

Example

minDigit=1
minOther

Enforce a requirement to include at least one special (non-alphanumeric) character. Value may be null or at least 1.

Example

minOther=1
expirationInDays

Enforce a requirement for passwords to expire after a set number of days. Value may be null or between 1-1095.

Example

expirationInDays=90
historySize

Set a number of passwords to remember. Members may not reuse a set number of prior passwords. Value may be null or between 1-24.

Example

historySize=3
f

The response format. The default format is html.

Values: html | json | pjson

Response properties

PropertyDetails
success

A Boolean property indicating whether the update was successful.

JSON Response syntax

{"success": <true | false>}

JSON Response example

{"success": true}