From 018df1c0f5eda2e8dabc4f39e6e29515aa18caf7 Mon Sep 17 00:00:00 2001 From: Prajwol Amatya <83579989+PrajwolAmatya@users.noreply.github.com> Date: Fri, 25 Sep 2026 12:43:20 +0545 Subject: [PATCH] [tests-only][full-ci] test: add test to check access to shared space for ldap group member (#12990) test: add test to check access to shared space for ldap group member Signed-off-by: Prajwol Amatya --- .../driveShareInvitations.feature | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/acceptance/features/apiSharingNgDriveInvitation/driveShareInvitations.feature b/tests/acceptance/features/apiSharingNgDriveInvitation/driveShareInvitations.feature index 758d8a1192a..85bd478854b 100644 --- a/tests/acceptance/features/apiSharingNgDriveInvitation/driveShareInvitations.feature +++ b/tests/acceptance/features/apiSharingNgDriveInvitation/driveShareInvitations.feature @@ -1428,3 +1428,21 @@ Feature: Send a drive invitations } } """ + + @env-config + Scenario: user has access to a space shared with LDAP group using posixGroup objectclass with uniqueMember schema + Given the following configs have been set: + | service | config | value | + | graph | OCIS_LDAP_GROUP_OBJECTCLASS | posixGroup | + | graph | OCIS_LDAP_GROUP_SCHEMA_MEMBER | uniqueMember | + And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API + And user "Alice" has created a space "NewSpace" with the default quota using the Graph API + And the administrator has created a group "grp1" using the Graph API + And the administrator has added a user "Brian" to the group "grp1" using the Graph API + When user "Alice" sends the following space share invitation using permissions endpoint of the Graph API: + | space | NewSpace | + | sharee | grp1 | + | shareType | group | + | permissionsRole | Space Viewer | + Then the HTTP status code should be "200" + And the user "Brian" should have a space called "NewSpace" granted to group "grp1" with role "viewer"