Custom properties – read-only access to all resources
You create a custom property to be able to use your own values in the security rules. You define one or more values for the custom property, and use these in the security rule for a resource.
For example, you may want to set up read-only access to all resources for some users, who will only be reviewing work. To do this, you create a custom property with one value, apply it to a security rule, and apply the rule to users who need it.
Creating custom properties
Do the following:
-
Open the QMC: https://<QPS server name>/qmc
-
Open Custom properties.
-
Click Create new.
-
Name the customer property AccessAllResources.
-
Optional. Add a description.
-
Under Resource types, select Users.
-
Under Values, click Create new and name the value ReaderOnly.
-
Click Apply.
You have now created a custom property with one value that can be used to give users read access to all resources. You can easily create additional values according to your needs, for example, a value that gives users rights to create, update, and publish.
Creating security rules
Do the following:
-
In the QMC, open Security rules.
-
Click Create new.
-
Name the security rule ReaderAccess.
-
Add a description: This rule grants ReaderOnly members of the custom properties group AccessAllResources read access to all resources.
Information noteBy default, the Resource filter field has an asterisk, indicating that all resources are selected. Click next to the text box to view the resources. -
Under Basic, ensure that the action Read is selected.
-
In the rule creation box, click the name list and select @AccessAllResources.
-
Click the empty text box next to value and select ReaderOnly.
-
The Conditions box in the Advanced section should now contain the following string:
((user.@AccessAllResources="ReaderOnly"))
Information noteIn the Context list, you can select if the rule is to be applicable in the hub, QMC, or both. -
Click Apply.
Applying custom properties to users
Do the following:
-
In the QMC, open Users.
-
Select one or more users.
Tip noteUse Ctrl+Click to select multiple users. -
Click Edit.
- On the Edit user page, ensure that the Custom properties section is displayed.
- Click the text box for the custom property AccessAllResources and select ReaderOnly.
-
Click Apply.
The selected users now have read access to all the resources in the QMC and can view apps, streams, content libraries, and so on.