Domanda

Our public facing website has developed on sharepoint 2013, we have mysite feature enabled and around 40,000 user profiles are their in Mysite.

We now don't want any user to be able to browse Mysite option, for this purpose we have deleted the link button for my sites from home page but some users had saved their link so they are still able to view their site.

May I please know how to disable it permanently??

What I did is

Went to CA>Manage Web Application>User Profile Service Application>SetUp Mysites>Disable all the features >Saved

Still we are able to get mysite.

È stato utile?

Soluzione

As per your information, this is not easy due to single web application with mixing of mysite and other sites.Couple of things you can try.

  • Lock all mysites in that web application as No access. No body can access mysite after this.

    $sites = get-spsite -WebApplication $webapp -Limit All

    foreach($site in $sites)
    
    {
        if($site -like "*/mysite/*") 
        {
            Set-SPSite -Identity $site -LockState "NoAccess"
    
            Write-Host "site status" $site.WriteLocked
        }
    }
    

Another option is hide the option from the user( i am not sure if that work).

  • Go to Central Administration > Application Management > Manage service applications > User profile service application
  • From the ribbon, Click “Manage User Permissions” under People.
  • On this page remove both group then no body will access the person page

Check this link for more info. http://howtosharepoint.blogspot.com/2010/11/hide-disable-my-site-my-profile-and.html

Altri suggerimenti

Simply open the SharePoint 2013 Management Shell and run the following command:

Disable-SPFeature 'MySite'

Please note that this is a Farm feature, not a Site Collection feature. Be sure you are targeting the right Farm if you have multiple ones. If you make a mistake, you can always re-enable it using:

Enable-SPFeature 'MySite'

As all the sites are still available, you should be able to add a security group with all your users / the SharePoint group called "Everyone" to your MySite webapplication and give them the permission "Deny All - Has no access."

While they will only get an access denied message while trying to browse their site, you should set up a redirection in IIS to redirect your users somewhere else explaining why MySite is disabled.

enter image description here

The below MySite feature in Farm level to prevent the redirection in Created/Modified by in list/libraryand user name links in list/library/user/groups/share but the redirection from Site Actions (About Me) should be handled using JQuery/JavaScript.

Disable-SPFeature -Id 69cc9662-d373-47fc-9449-f18d11ff732c

More details check this blog!

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top