Role policies allow developers to link an Application User role to a particular schema, and define the shape of the resources they can interact with. For example, a role for a device engineer that only allows them to create Thngs that have a pre-defined set of fields, and guarantee that all required properties is present.
If multiple schemas are required to be associated with a role, this can be easily achieved by creating multiple policies for that same role.
NoteOnce created, policies cannot be updated. You must delete the original policy and create a new one with the new data.
API Status
General Availability:
/roles/:roleId/policies
PolicyDocument Data Model
Create a Policy
Create a new policy to link a role with a schema.
Read all Policies
Read all policies associated with a role. The result may be paginated if there are more than 30 items.
Read a Policy
Read a single policy by ID.
Delete a Policy
Delete a policy by ID.