- URL:
- https://<root>/security/config/update
- Methods:
POST
- Required Capability:
- Access allowed with the "Security and Infrastructure" privilege
- Version Introduced:
- 10.2.1
Description
The update
operation can be used to update the portal's security settings, such as whether or not enterprise accounts are automatically registered as members of your organization the first time they log in.
The security configuration is stored as a collection of properties in a JSON object. The supported properties are defined in the Security configuration properties table below.
Request parameters
Parameter | Details |
---|---|
| The JSON object containing the properties listed below. |
| The response format. The default response value is Values: |
Security configuration properties
Properties | Details |
---|---|
| Restricts what hosts Enterprise portal can access directly. This restriction applies to several scenarios, including when the Enterprise portal accesses resources from a server that does not support Cross Origin Resources Sharing (CORS) or when saving credentials used to access a secure service. By default, this property is not defined and no restrictions are applied. Use the format Syntax: A comma-separated list of host names. |
| The automatic account creation flag. This determines the behavior for unregistered enterprise accounts the first time they access an organization. The default value for the property is Values: |
| Controls whether the HTML pages of the services directory should be accessible to the users. The default value for this property is Values: |
| Sets which role ArcGIS Enterprise automatically assigns to new accounts. By default, new accounts are assigned to Values: |
| Appends an underscore and specified suffix to new enterprise accounts that will sign in via SAML. This applies to accounts created automatically and manually. This allows enterprise usernames in ArcGIS Enterprise to match corresponding enterprise usernames in ArcGIS Online. This is needed if editor tracking is enabled on a feature service that is edited by members from both ArcGIS Online and ArcGIS Enterprise. For example, if the
|
| Sets the default user type assigned to users during account creation and when creating built-in accounts. These user types must be compatible with the Values: |
| Introduced at 10.9.1. A boolean that controls the value of the Values: |
| Introduced at 11.4. The
|
Example usage
The following is a sample POST request for the update
operation:
POST /webadaptor/portaladmin/security/config/update HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
securityConfig={
"disableServicesDirectory": false,
"enableAutomaticAccountCreation": false,
"contentSecurityPolicy": {
"home": "frame-ancestors 'self';",
"apps": "frame-ancestors 'self' sample.domain.com;"
}
}&f=pjson
JSON Response example
{
"status": "success",
"recheckAfterSeconds": 10
}