com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_link3' is unknown.
Configuring Role Permissions
This section provides details on how to configure permissions by defining permissions to an API and the permissions associated with the APIs.
Defining permissions for APIs
If you wish to create additional permission, follow the steps given below:
- Navigate to the JAX-RS web application that of your device types API folder. For more information, see the permission XML file of the virtual fire-alarm.
Define the new permission using the
@permission
annotation.
Thescope
defines to whom the API is limited to and thepermission
that is associated with a given API.
Example:@Permission(scope = "virtual_firealarm_user", permissions = {"/permission/admin/device-mgt/user/operations"})
- Restart WSO2 IoT Server and you will see the new permission created in the permission tree.
Now only users who have this specific permission assigned to them will be able to control the buzzer of the fire-alarm.
Permission APIs
Let's take a look at the default permissions associated with the APIs.
com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.