10.2. Defining Self-Service Settings
Self-service access control rules define the operations that an entity can perform on itself. These rules define only what attributes a user (or other IdM entity) can edit on their personal entries.
10.2.1. Creating Self-Service Rules from the Web UI
- On the IPA Server tab in the top menu, select the
subtab. - Click Add at the top of the list of the self-service access control instructions.
Figure 10.1. Adding a Current Self-Service Rule
- Enter the name of the rule in the pop-up window. Spaces are allowed.
Figure 10.2. Form for Adding a Self-Service Rule
- Select the check boxes by the attributes which this ACI will permit users to edit.
- Click the Add button to save the new self-service ACI.
10.2.2. Creating Self-Service Rules from the Command Line
A new self-service rule can be added using the selfservice-add command. These two options are required:
--permissions
to set which permissions – such as write, add, or delete – the ACI grants--attrs
to give the full list of attributes which this ACI grants permission to.
[jsmith@server ~]$ ipa selfservice-add "Users can manage their own name details" --permissions=write --attrs=givenname --attrs=displayname --attrs=title --attrs=initials ----------------------------------------------------------- Added selfservice "Users can manage their own name details" ----------------------------------------------------------- Self-service name: Users can manage their own name details Permissions: write Attributes: givenname, displayname, title, initials
10.2.3. Editing Self-Service Rules
In the self-service entry in the web UI, the only element that can be edited is the list of attributes that are included in the ACI. The check boxes can be selected or deselected.
Figure 10.3. Self-Service Edit Page
![Self-Service Edit Page](https://access.redhat.com/webassets/avalon/d/Red_Hat_Enterprise_Linux-7-Linux_Domain_Identity_Authentication_and_Policy_Guide-en-US/images/3c0c5e8e0b536cfbca3f2b0f67e683f7/selfservice-edit.png)
With the command line, self-service rules are edited using the ipa selfservice-mod command. The
--attrs
option overwrites whatever the previous list of supported attributes was, so always include the complete list of attributes along with any new attributes.
[jsmith@server ~]$ ipa selfservice-mod "Users can manage their own name details" --attrs=givenname --attrs=displayname --attrs=title --attrs=initials --attrs=surname -------------------------------------------------------------- Modified selfservice "Users can manage their own name details" -------------------------------------------------------------- Self-service name: Users can manage their own name details Permissions: write Attributes: givenname, displayname, title, initials
Important
Include all of the attributes when modifying a self-service rule, including existing ones.