Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advanced Compartment authorization #6414

Open
AlthafGit opened this issue Oct 28, 2024 · 0 comments
Open

Advanced Compartment authorization #6414

AlthafGit opened this issue Oct 28, 2024 · 0 comments

Comments

@AlthafGit
Copy link

Actually I tried with to added the rule based on specific param in the builder as below. Its not working and allowed to give all categories.

AdditionalCompartmentSearchParameters params = new AdditionalCompartmentSearchParameters();
params.addSearchParameters("Condition:category=encounter-diagnosis");

						builder.allow().read().resourcesOfType(requestResource).inCompartmentWithAdditionalSearchParams("Patient", userIdPatientId, params) // Allow only the specified category
						.forTenantIds(accountId)
						.andThen().denyAll().build();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant