- 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
Parameter | Details |
---|---|
minLength | Enforce a minimum character requirement. Value may be between 8-1000 Example
|
minUpper | Enforce a requirement to include at least one upper case character. Value may be null or at least 1. Example
|
minLower | Enforce a requirement to include at least one lower case character. Value may be null or at least 1. Example
|
minLetter | Enforce a requirement to include at least one letter. Value may be null or at least 1. Example
|
minDigit | Enforce a requirement to include at least one number. Value may be null or at least 1. Example
|
minOther | Enforce a requirement to include at least one special (non-alphanumeric) character. Value may be null or at least 1. Example
|
expirationInDays | Enforce a requirement for passwords to expire after a set number of days. Value may be null or between 1-1095. Example
|
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
|
f | The response format. The default format is html. Values: html | json | pjson |
Response properties
Property | Details |
---|---|
success | A Boolean property indicating whether the update was successful. |
JSON Response syntax
{"success": <true | false>}
JSON Response example
{"success": true}