Sometimes within an Enterprise, it is hard to maintain the user Permissions within the SharePoint sites. The link “Add all authenticated users” present in the Add Users page is used to add the entire organization’s users to any document library or lists or any site thereby opening a huge security risk for the content.
To view the link to add all authenticated users, Open Internet Explorer and
Type the SharePoint site in the location bar.
- Click Site Actions, Site Settings
- Under Users and Permissions, click People and Groups
This link comes from the system file called as “AclInv.aspx” from the following location.
(C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS).
NOTE: Make sure to backup this file in a different location before editing or making any changes.
Now, open the file from the above location in a Notepad editor.
Locate the line as shown below.
<asp:LinkButton id=”LinkAddAuthusers” Text=”<%$Resources:wss,permsetup_addauthtitle%>” runat=”server” causesvalidation=”false” onClick=”LinkAddAuthusers_Click” />
Add a comment tag (<!– –> to hide the code from the browser. Rather deleting the code, it is recommended to hide so that it doesnt affect any other SharePoint settings since it is a system file under 12 hive.
If you want to add custom groups, you may do at this point by providing a line as shown below.
Just below the line of code where the above update was done, copy and paste the following code.
<a id=”Marketing” href=”javascript:” onClick=”var arg=WebForm_DoCallback(‘ctl00$PlaceHolderMain$ctl00$ctl01$userPicker’,id,EntityEditorHandleCheckNameResult,ctx,EntityEditorHandleCheckNameError,true);”>Marketing</a><br>
Note:
1. Replace the text (Marketing) with the desired groups.
2. Replace the id=”” with the desired groups. Note that the word provided within the quotes of id=”” should match the SharePoint group created already.
Once you save the file and close, go to the SharePoint site and find that the link “Add All authenticated users” have gone now. Rather you can see the above custom link in case you added them in the aclinv.aspx file.