When a user with the role OrganizationAdmin performs read request for some user like GET /User/<user-id>, Aidbox checks if organization.id of the requester and the desired user has the same organization reference. If the organization is the same, Aidbox allows otherwise restricts access.
It is important to syncronize directory and file name to the :ns parameter of the configuration
Create an empty directory acl
mkdiracl
Create file system.edn in new folder
cdacl&&touchsystem.edn
Populate configuration file
In the following configuration project user and client credentials are written as plain text to simplify the topic. In real life scenarios it is important to define credentials with ENVs
POST [base-url]/auth/tokenContent-Type:text/yaml{"client_id":"postman","client_secret":"secret","username":"admin-org-1","password":"password","grant_type":"password"}
GET [base-url]/User/user-org-2Content-Type:text/yamlauthorization:"Bearer MW...Ex"
resourceType:OperationOutcomeid:deletedtext:status:generateddiv:"Resource User/user-org-2 not found"issue: - severity:fatalcode:deleteddiagnostics:"Resource User/user-org-2 not found"