/securityPolicy/update: Update Security Policy

URL:
https://[root]/portals/[portalID]/securityPolicy/update
Methods:
POST
Version Introduced:
10.4

Example usage

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

Use dark colors for code blocksCopy
1
2
3
4
5
6
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

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

Use dark colors for code blocksCopy
1
2
3
4
5
6
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

The update 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
Use dark colors for code blocksCopy
1
minLength=8

minUpper

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

Example
Use dark colors for code blocksCopy
1
minUpper=1

minLower

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

Example
Use dark colors for code blocksCopy
1
minLower=<null>

minLetter

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

Example
Use dark colors for code blocksCopy
1
minLetter=2

minDigit

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

Example
Use dark colors for code blocksCopy
1
minDigit=1

minOther

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

Example
Use dark colors for code blocksCopy
1
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
Use dark colors for code blocksCopy
1
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
Use dark colors for code blocksCopy
1
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

Use dark colors for code blocksCopy
1
{"success": <true | false>}

JSON Response example

Use dark colors for code blocksCopy
1
{"success": true}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.