diff --git a/src/main/java/dev/cerbos/sdk/builders/ResourceAction.java b/src/main/java/dev/cerbos/sdk/builders/ResourceAction.java index 94dbb87..1bb468e 100644 --- a/src/main/java/dev/cerbos/sdk/builders/ResourceAction.java +++ b/src/main/java/dev/cerbos/sdk/builders/ResourceAction.java @@ -39,6 +39,11 @@ public ResourceAction withAttribute(String key, AttributeValue value) { return this; } + public ResourceAction withScope(String scope) { + this.resource.setScope(scope); + return this; + } + public ResourceAction withAttributes(Map attributes) { attributes.forEach(this::withAttribute); return this;