Creating a Huawei HiLens Custom Policy
Custom policies can be created as a supplement to the system policies of Huawei HiLens. For the actions supported for custom policies, see Introduction.
You can create custom policies in either of the following ways:
- Visual editor: Select cloud services, actions, resources, and request conditions without the need to know policy syntax.
- JSON: Edit JSON policies from scratch or based on an existing policy.
For details, see Creating a Custom Policy. This section describes common custom policy examples of Huawei HiLens.
A Sample Custom Policy of Huawei HiLens
Example: Denying deletion of developed skills
A deny policy must be used in conjunction with other policies to take effect. If the permissions assigned to a user contain both Allow and Deny actions, the Deny actions take precedence over the Allow actions.
The following method can be used if you need to assign permissions of the Huawei HiLens FullAccess policy to a user but also forbid the user from deleting developed skills. You can create a custom policy for denying deletion of developed skills and assign both policies to the group the user belongs to. Then the user can perform all operations on Huawei HiLens except deleting developed skills. The following is an example deny policy:
{ "Version": "1.1", "Statement": [ { "Effect": "Deny", "Action": [ "hilens:project:deleteProject" ] } ] }
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot