SharePoint 2016 -credentials popup in zone anonymously

Flórida da Graça Botelho Araújo 201 Reputation points
2023-06-12T14:51:10.1033333+00:00


In the central administration web application authentication providers, I have two zones:

Internet (anonymous): www.xpto.pt:80, www.xpto:445
Default (NTLM and FBA authentication) http://internet.xpto.pt
It was detected that in the internet zone (www.xpto.pt) there are subsites that allow opening PDFs and others that trigger the credentials popup.

I couldn't run powershell to enable the whole site, because it says it's not possible since the site has exclusive permissions.
I proceeded via powershell to anonymously enable each library list:
Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue 
 
#Get the web and the list
$web = Get-SPWeb http://...
$list = $web.lists.tryGetList("...")
 
if($list -ne $null)
{
    $list.BreakRoleInheritance($true)
    $list.AllowEveryoneViewItems = $true
    $list.AnonymousPermMask64 = "Open, OpenItems, ViewListItems, ViewVersions, ViewFormPages, ViewPages, UseClientIntegration"
    $list.update();
}

Solved the problem. 
However, after a while in the same libraries the problem happened again and every time a new library is created I have to run powershell to allow anonymous access.

Do you have any idea what might be happening? Is there any log or way to check for changes to permissions (other than audit logs)?

Thanks
Microsoft 365 and Office | SharePoint Server | For business
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Xyza Xue_MSFT 30,231 Reputation points Microsoft External Staff
    2023-06-13T02:04:38.65+00:00

    Hi @Flórida da Graça Botelho Araújo ,

    According to my research, I'm afraid your needs can't be met.

    Other than audit logs, there is currently no other way to see who made changes to the anonymous setting.

    Please refer to:View audit log reports


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.