## sample 7 ### Authorize This example shows how to use list, map and records in the context Can PhotoFlash::Data::User::"alice" view PhotoFlash::Data::Photo::"VacationPhoto94.jpg" Decision: Allow ``` cargo run authorize \ --policies policy.cedar \ --entities entity.json \ --request-json request.json ``` ### Validation: Is policy.cedar valid based on the schema schema.cedarschema ``` cargo run validate \ --policies policy.cedar \ --schema schema.cedarschema ``` ### Evaluate Evaluate a Cedar expression ``` cargo run evaluate \ --request-json request.json \ --entities entity.json \ "context.role.contains(\"admin\")" ```