Policies in IAM
Policies
Policy Type
Description
Field
Description
// Example Policy document that allows access to an object named "Students"
// Allows Read Access to all fields
// write access to the fields - firstName, lastName and dob
// with a condition that if the logged in user email is same as the row.email
{
"name": "StudentProfileAccess",
"label": "Student Profile Access",
"version": "2023-01",
"type": "ObjectControl",
"object": "Students",
"fields": {
"read": "*",
"write": ["firstName","lastName","dob"]
},
"condition": {
"stringEquals": {
"email": "{{user.email}}"
}
}
}
Last updated