Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Get Access Requests list via Powershell (to make changes to permissions)

$
0
0

Hello,

We have an issue where there seems to be a disconnect on the Access Requests list as full control user cannot accept/decline.

After further reading, the original owners group must have been removed/deleted/etc..

I am trying to get the GUID of the list via Powershell so we can open the List Settings and fix permissions, but I am not able to 'find it on any webs in the site collection:

Add-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue
$siteUrl = "https://menet.domain.com/sites/fakeName"

$spsite = Get-SPsite $siteUrl

foreach ($web in $spsite.AllWebs)
{
    $list = $web.Lists["Access Requests"] #THIS DOESNT WORK
    Write-Host $list.Guid

     foreach ($list in $spsite.AllWebs)
        {

         if ($list.Title -eq "Access Requests")
         {
            Write-Host "found it" #THIS DOESNT WORK EITHER
         }
        }
}
$spsite.dispose()

Am I missing something?  I tried to find this list via SPD and now Powershell and I can't seem to 'find it'. 

I am running script as farm account too! 

Sources I've looked at:

Issue at hand: https://social.technet.microsoft.com/Forums/azure/en-US/1f015aac-25f9-4a46-872c-34899b66da9a/access-denied-error-while-accessing-site-settings-access-requests-and-invitations?forum=onlineservicessharepoint

https://social.technet.microsoft.com/wiki/contents/articles/31157.manage-sharepoint-online-access-requests-using-powershell.aspx#Approve_or_Decline_Access_Requests

https://gallery.technet.microsoft.com/Manage-Approval-Requests-2f48e7ee


Herschel


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>