Skip to content

Policy repository for PeopleFinder sample application

Notifications You must be signed in to change notification settings

aserto-demo/peoplefinder-policy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

peoplefinder-policy

Policy for PeopleFinder demo

default

default allow = false

peoplefinder.users.get.rego

allow {
    input.method == "GET"
    input.user == "kaia@acmecorp.com"
}

peoplefinder.users.__id.put.rego

allow {
    u = input.user
    u.enabled == true
    u.properties.department == "Sales Engagement Management"
}