diff --git a/.changeset/pretty-pans-invent.md b/.changeset/pretty-pans-invent.md new file mode 100644 index 00000000000..0067d74c08e --- /dev/null +++ b/.changeset/pretty-pans-invent.md @@ -0,0 +1,5 @@ +--- +"@wso2is/admin.groups.v1": patch +--- + +Hide Add Group button for secondary user stores diff --git a/features/admin.groups.v1/pages/groups.tsx b/features/admin.groups.v1/pages/groups.tsx index eca715c6f55..be49e89e9e2 100644 --- a/features/admin.groups.v1/pages/groups.tsx +++ b/features/admin.groups.v1/pages/groups.tsx @@ -144,7 +144,10 @@ const GroupsPage: FunctionComponent = (): ReactElement => { },[ groupsError ]); useEffect(() => { - if (!isSuperOrganization()) { + if (!( + isSuperOrganization() + || isFirstLevelOrganization() + )) { return; }