Administration Guide › Custom Roles and Policies › Example: Allow a Non-Administrator to Manage Archives
Example: Allow a Non-Administrator to Manage Archives
Suppose you want to allow a non-Administrator group to manage auto-archiving. You could create a group called ArchiveAdministrator, a CALM policy that allows the edit action on the resource database. This allows read access on the archive catalog of databases for querying, write access on the archive catalog for ReCatalog, and the ability to use LMArchive utility for manual archiving or the restore-ca-elm shell script for restoring auto-archived databases.
To allow specified non-Administrators to handle archiving
- Create a role called ArchiveAdministrator.
- Select the Administration tab and then the User and Access Management subtab.
- Select Groups.
- Click New Application Group.
- Enter ArchiveAdministrator as the name.
- Click Save.
The Application Group, or role, ArchiveAdministrator is created.
- Click Close.
- Create a CALM policy to allow edit access to the database resource.
- Click Access Policies.
- Click New Access Policy to create a new CALM policy.
- Type ArchiveAdministrator policy in the Name field.
- Type ArchiveAdministrator can run the LMArchive utility and the restore-ca-elm shell script for the description.
- For Identities, select Application Group as the Type, click Search Identities, and then click Search.
- Select ArchiveAdministrator and then click the move arrow.
- Type Database under Add resource and click Add.
- Select edit as the Action.
- Click Save. Click Close
- Test the policy and verify that the result is ALLOW.
- Grant the ArchiveAdministrator role the ability to log on to CA Enterprise Log Manager.
- Click CALM under Access Policies.
- Select CALM Application Access.
- Under Identities, search for the Application Group ArchiveAdministrator, and move it to Selected Identities.
- Click Save. Click Close. Click Close.
The User and Access Management tab appears with the buttons in the left pane.
- Assign the ArchiveAdministrator role to one or more users.
- Click Users.
- Enter the name of a person to whom you want to assign this role as the Value under Search Users and click Go.
The selected user name appears under the Users folder.
- Select the link for the selected user.
- Click Add Application User Details.
- Move Archive Administrator to the Selected User Groups list.
- Click Save. Click Close.
- Repeat for each user to whom you want to assign this role.
- Click Close.
- (Optional) Review the results from CA Enterprise Log Manager.
- Click Log Out to log out as the Administrator.
- Log in as a user to whom you assigned the role ArchiveAdministrator.
- Click the Administration tab, Log Collection subtab.
- Select Archive Catalog Query.
- Observe that you use the Query and ReCatalog buttons.
- (Optional) Run the restore-ca-elm restore script with the credentials of the user defined with the ArchiveAdministrator role to verify the policy works as expected.
More information:
Restore Auto-Archived Files