If an employee leaves the company we need a way to find all the places that person has been granted permission in SharePoint. And then of course we would need to remove those permissions or if they are a site owner, change the owner to another employee.
Has anybody done this or have an idea where to start?
I recently put together a web part to do this – basically, each
SPListin eachSPWebon your site has a collection ofSPRoleAssignmentobjects, which define the permissions for that object. Within theSPRoleAssignment, there is a collection ofMemberobjects, from which you can get the name of the user or group that has been assigned permission to this object. This allows you to get the permissions even if the list or folder is not inheriting from a parent. The Access Checker Web Part mentioned earlier does this, but it does not look at sub-folders, which may have their own permissions.The bottom line is that if you have given users explicit permission to distinct folders, you will need to either build a solution to give you a run-down of the permissions, or click through every folder separately. There is no built-in functionality to display this quickly and simply.