About this resource
Represents a single setting in ADAM.
Because settings can contain sensitive information, an additional security measure is present in the REST API
preventing access to settings unless explicitly allowed by the ADAM administrator.
In order to access (read/write) any of the settings in ADAM,
the administrator first needs to configure a whitelist of all the settings allowed to be
accessed through the REST API. This whitelist is a system setting in ADAM,
named '.rest_SettingsWhitelist', in the form of a comma-separated list of allowed setting names,
and can be updated through the System Studio.
However, the whitelist does not affect users from the ADAM Administrator and Operator user groups:
they have access to all their ADAM settings, irrespective of the whitelist.
After the whitelist has been properly configured, consumers can access the settings specified
in the whitelist via the REST API.
Properties
Property | Description | Type |
---|---|---|
name | Gets the name of the setting. | string |
value | Gets the value of the setting. | string |
Relations
Actions
Method | Action | Description | Response codes | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PUT /setting/{settingName} | edit | Set the value of an existing setting for the specified scope. |
|
Examples
GET /setting/.defaultRecordTitleField HTTP/1.1
{ "_links": { "self": { "href": "/setting/.defaultRecordTitleField" } }, "name": ".defaultRecordTitleField", "value": "DisplayTitle" }
GET /setting/.defaultRecordTitleField?scope=usergroup&scopeId=d4889b57-af11-4da9-aba1-c96d1b6a22ec HTTP/1.1
{ "_links": { "self": { "href": "/setting/.defaultRecordTitleField?scope=usergroup&scopeId=d4889b57-af11-4da9-aba1-c96d1b6a22ec" } }, "name": ".defaultRecordTitleField", "value": "DisplayTitle" }
PUT /setting/.defaultRecordTitleField { "name": ".defaultRecordTitleField", "value": "DisplayTitle", "scope": "UserGroup", "scopeId": "1ED74A99-84CD-4A9C-BFEB-A4D000EC3275" }
-
Name, value and scope properties are required to set the setting.
Name and scope properties are required to read the setting value in specific scope.
Only Name is required to read the scope-independent setting value. - Scope can be system, user, usergroup or site.
-
When scope is set to user, scopeId is optional. Current user's id is used in this case.
When scope is set to usergroup or site, scopeId is mandatory.