I am checking the permission of an user at the list level. When I checked user permissions, it is showing the user is in the owners group, but when I checked in owners group, the user does not exist. It is a strange thing the user is not showing in group. I have to remove that user from the owners group. What I should do.
If the site members are in an Office 365 Group it is not straight forward to see how this is connected to the SharePoint Groups.
So how is this connected? We can see that by using PowerShell:
❯ (Get-PnPGroup -AssociatedOwnerGroup).Users Id Title LoginName Email -- ----- --------- ----- 9 Playground Owners c:0o.c|federateddirectoryclaimprovider|b811a5e1-0632-4f9a-8ff7-4ffe90ebd81f_o Playground@XXXXXXX.onmicrosoft.com
_o at the end of the account name. This will be all group owners.
I am guessing you are using SharePoint Online team site which is connected to the Office 365 Group.
When you give permissions to user from Site Home Page (i.e. from Office 365 group), it will not directly added to the SharePoint default Site Owners group.
But you can see the Office 365 group has been already added to the SharePoint default Site Members group.
So, the permissions to the SharePoint site are managed by the office 365 group and not directly from SharePoint default Owners group.
How to remove that user from the owners group:
- Go to SharePoint Site Home Page.
- Click on the "xx Members" from top navigation bar (right side corner).
- It will open Group Membership pop-up.
- Remove/Change the user permissions from this pop-up.