This has been happening for a while on our SharePoint Online Site. These are the steps to recreate:
- I have a document library that is no longer inheriting permission from the parent site.
- I give editing permission to a group in this document library.
- I then see that this group has also been added at the parent level with editing permissions.
- I delete group from the parent level.
- Group also gets deleted from the document library level.
- Re-add group to the document library with editing access.
- Verify that the group did not get added at parent level again and it has not.
Any idea as to why this happens and how to stop it.