Access Policies
# support
v
Hello, We've encountered a challenge with access policies in our project. After inserting many resources, we later added access policies. Consequently, when we attempt to associate access policies with users, such as practitioners, their associated data (e.g., patients) becomes inaccessible because the policy includes compartment criteria, and old resources lack generated compartments. Example of access policy criteria: Questionnaire?_compartment=Organization/${organizationId}. Could you provide any suggestions on how we might address this? How can we update existing data to ensure accessibility even after applying the policy?
r
HI @vijay.hambar - project admin users can set the
meta.account
property of a resource, which is one way of setting the compartment https://www.medplum.com/docs/access/admin#project-admin
v
Okay, thank you, will check.
171 Views