Assigning Tests to a Role in Bulk
Overview
After upgrading to Login Enterprise 6.0, which introduces Role-Based Access Control, none of your Tests will have a role automatically assigned. This means that only the built-in "admin" account can manage them. You can individually add a role to your existing Tests, but if you have a large number of Tests, this can be inconvenient and time-consuming.
Assigning Tests to a Role in Bulk
You can use the attached PowerShell script after the 6.0 upgrade to find all unassigned Tests and assign them to a role of your choosing.
For instance, Login Enterprise will automatically create a role called "Admin" and assign it to your LDAP Administrators group during the upgrade. You can simply assign that role to your Tests.
When you run the script, it will put up a dialog window asking for:
- The Appliance FQDN (the host/domain name, not the web URL).
- A Configuration-level API key.
- The Role you want to assign to your unassigned Tests.
Creating an API key
1. In the Login Enterprise sidebar menu, navigate to Access Control > Public API.
2. Create a new Public API key by clicking Add new system access token.
3. Give it a name, and in Access Level, select Configuration.
4. Click Save.
After you specify the Appliance FQDN and the API Key in the previous step, click Retrieve List. This populates the Specify Role pulldown. It likely only contains one entry, "Admin," which is the role we created during the upgrade. Then, click Assign Role. This will update all of your unassigned Tests to use the specified role.
Additional resources
- AssignRole.ps110 KB