+ }
+ onClick={() => {
+ setValue("groups", [
+ ...(values || []).filter(({ id }) => id !== group.id),
+ ]);
+ setSelectedGroups([
+ ...selectedGroups.filter(({ id }) => id !== group.id),
+ ]);
+ }}
+ />
+
+
+ ))}
+
+
+ )}
+
+ >
);
};
diff --git a/src/clients/help.ts b/src/clients/help.ts
index 29896a89f6..79f919edc7 100644
--- a/src/clients/help.ts
+++ b/src/clients/help.ts
@@ -255,6 +255,8 @@ export default {
applyPolicy:
"Specifies all the policies that must be applied to the scopes defined by this policy or permission.",
policyClient: "Specifies which client(s) are allowed by this policy.",
+ groupsClaim:
+ "If defined, the policy will fetch user's groups from the given claim within an access token or ID token representing the identity asking permissions. If not defined, user's groups are obtained from your realm configuration.",
policyGroups: "Specifies which user(s) are allowed by this policy.",
targetClaim: "Specifies the target claim which the policy will fetch.",
regexPattern: "Specifies the regex pattern.",
diff --git a/src/clients/messages.ts b/src/clients/messages.ts
index 362dcac7f4..d0f77d9c79 100644
--- a/src/clients/messages.ts
+++ b/src/clients/messages.ts
@@ -230,6 +230,7 @@ export default {
applyPolicy: "Apply policy",
addClientScopes: "Add client scopes",
clientScope: "Client scope",
+ groupsClaim: "Groups claim",
addGroups: "Add groups",
groups: "Groups",
users: "Users",