Pages

Thursday, September 26, 2013

SharePoint 2013 - Disable default on e-mail invitation when adding site permissions

Issue:
When adding permissions on SharePoint 2013, the application sends an e-mail to the people being added.  That is, unless you click on the Show Options link and then uncheck the "Send an email invitation" checkbox.
For users in my environment, this causes a lot of unintended e-mails.

I found this information on this site:  

Source: http://social.technet.microsoft.com/Forums/sharepoint/en-US/692bc45b-273d-4b67-b93d-4057734cdfc4/how-do-i-remove-send-welcome-email-to-the-new-users-checkbox-when-adding-a-new-user-to-a-group-in  
There is a workaround to edit the _layouts/aclinv.aspx file to disable the feature globally.
Here is the steps:
1. Navigate to C:\Program Files\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\LAYOUTS folder.
2. Find and the aclinv.aspx file.
3. [Important!]Backup the aclinv.aspx file with aclinv.aspx.bak or other file name you specific.
4. Edit the aclinv.aspx file with Notepad or other editing tool.
5. Search for “chkSendEmail”, you should see property Checked="True" under it.
6. Change the value from “True” to “False” and save the file.
7. You should see the changes after refreshing the pages.

****Note that this is not supported.****
But if you do it, you should do it on all front ends.  Don't forget to make a backup of the file first.

The above information did not make the change for me in SharePoint 2013.  I had to open this file instead:
C:\Program Files\Common Files\Microsoft Shared\web server extensions\15\TEMPLATE\LAYOUTS\aclinv.aspx
I changed the Checked="true" to Checked="false" (highlighted below)

<div class="ms-core-form-subsection">
                <asp:CheckBox
                    runat="server"
                    id="chkSendEmailv15"
                    Checked="true"
                    class = "ms-aclinv-checkbox"
                    OnClick="UpdateSendEmailMessage()"/>
                <label for=<%SPHttpUtility.WriteAddQuote(SPHttpUtility.NoEncode(chkSendEmailv15.ClientID),this.Page);%>>
                    <SharePoint:EncodedLiteral runat="server" text="<%$Resources:wss,aclinv_SendEmailCheckboxv15%>" EncodeMethod='HtmlEncode'/>
                </label>

2 comments:

  1. Which file?
    C:\Program Files\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\LAYOUTS(?)

    Thanks!

    Gary

    ReplyDelete
    Replies
    1. Sorry about that... it is the same file name, just in a different folder. I updated the text in the post.

      Delete