Hot answers tagged

11

Another option would be to develop an event receiver for the 'site is being deleted' event and have it canceled. You can also decide whether you want to show an error message to the user (like: 'you cannot delete your own site!') or not. You can find some more information on event receivers on Building SharePoint Event Receivers in 2010 post from SharePoint ...


10

Been there, done that a couple of years ago ;-) Instead of messing with a masterpage (which you'd need to apply to each MySite because they are separate site collections) or HTTP module I'd recommend the approach outlined here http://sharepointmagazine.net/articles/custom-page-security-using-sharepoint-delegate-controls with a DelegateControl. Just staple ...


10

UserProfile.PersonalSite property gets the personal site of the User: var profileManager = new UserProfileManager(ServerContext.GetContext(SPContext.Current.Site)); var profile = profileManager.GetUserProfile("domain\\username"); using (SPSite personalSite = profile.PersonalSite) { var personalSiteUrl = personalSite.PersonalUrl; }


9

You might be able to modify the permissions at the web application level through Central Admin. Manage Web Applications > User Permissions However, this will limit what the site collection administrator can do on his own site. Here is a possible code solution to stop the WebDeleting event: ...


7

User Profile Service – Activity Feed Job http://technet.microsoft.com/en-au/library/ee620541.aspx#section11 By default it should be hourly http://blogs.msdn.com/b/spses/archive/2011/02/05/social-computing-part-3-activity-feeds-social-ratings-tags-and-notes.aspx


7

If it's anything like 2007, the membership aspect of My Sites is worthless. In 2007, it required that you explicitly be entered into the Members group in a site/site collection. Anything higher (like owners or designers) you didn't show up. Anything lower (like Visitors) you did not show up. If you were given direct permissions you did not show up. If ...


7

You should not edit the person.aspx in the file system (updates will likely overwrite it). SharePoint Designer is the first option, but not a good one. It will customize the page and you will not benefit from pre-compilation, and can cause headaches when upgrading! One approach that I've previously uses is to add a new feature that puts a control in the ...


7

Most likely it is because the browser is not detecting that the subsite is in the proper domain. in IE, this is accomplished by making sure that everything that is *.intranetdomain.com is in the "Local Intranet" zone, which is usually done via Policy. It can also be done manually by going to Tools-Options-Internet settings-Security-Local ...


7

You are able to brand the My Site host itself (where Newsfeed is) with SharePoint Designer. However, each SkyDrive site (My Content site) is a separate site collection. You would need to manually apply your branding to each one individually. Not ideal, but Office 365 and SharePoint Online don't give you any other options. If you have SPO-D (SharePoint ...


6

welcome to SharePoint Stack Exchange!! It is not possible out of the box, just so that you know! But, your problem was so interesting that I thought of spending couple of hours just to develop a small customization :) So this is how my solution works: The default size of images posted on Newsfeed time-line is 300x300px I developed a custom feature that ...


6

A more global fix can be found by editing Search.ClientControls.js until a permanent fix is found. This will present you with a farm-wide fix, that not only fixes People Search, but other contextual searches as well. I've documented the workaround, but it involves removing references to a new function named encodeURI introduced by April 2014 CU/MS14-022 ...


5

Besides deleting the site collection you also must clear a value in the User Profile! Navigate to the User Profile Service in Central Admin (Manage Service Applications), Click "Manage User Profiles" Find the profile of the user by searching Click on it and select "Edit User Profile" Find "Personal site:" and empty the field Find "Feed service provider ...


5

If all resources for the branding marked (MasterPages, CSS, JS) as Ghostable or GhostableInLibrary then it looks like they where stored in the content database. The files will be directly loaded from the feature directory. They are not as long as you don't modify those files directly inside of SharePoint. If you then update your solution the files will be ...


5

Go to Central Admin -> Manage Service Applications -> User Profile Service Application


5

When you changed the My Site Host URL did you extend and map it to your original my site host or did you just add the binding in IIS and then change AAM? Change the web application and ensure that all of the dependancies are working as well as changing the setting in the User Profile Service Application. Ensure that the URL you wish to use for the MySite ...


5

Is your production a multi server farm? I think you are facing the following issue: http://blogs.msdn.com/b/calvarro/archive/2011/11/06/sharepoint-2010-amp-visual-studio-2010-error-ocurred-activate-features-feature-with-id-installed-in-this-farm-cannot-be-added-to-this-scope.aspx It turns out that VS 2010 internally implements a call to the method ...


5

When you deploy a file to a gallery using the File CAML element, SharePoint does not automatically remove the file when you deactivate the feature (or retract the solution). Presumably this is to prevent parts of the site that rely on the presence of that file from breaking if you were to accidentally deactivate the feature. To get around it, you should ...


4

There are workarounds to utilize local account when installing on Win7, but you wont want to do that in a production because: you wont be supported by Microsoft your farm wont scale you can count on having weird issues that you will most likely not find documentation on. In order for you to setup synchronization, when you configure the sync you need to ...


4

You need to get a user profile object and once you have the object you can access the profile's properties, including the custom ones. For example: UserProfileManager upm = new UserProfileManager(SPServiceContext.GetContext(site)); UserProfile p = upm.GetUserProfile("accountname"); object value = p["propertyname"][0];


4

Organization browser is populated from your user profile service application (using manager and colleagues data). Try and run an incremental syncronization of user profile.


4

Users are granted site collection administrator rights to their My Site, so they'll have the ability to do so. Aside from training and making sure the sites are backed up routinely, I'm not sure there is anything else that can be done. Some of the developers round here might have event receiver ideas. And as Lori mentioned, you can fiddle with the web ...


4

The trickiest part of this is making sure the brand gets used for all new mysites created from this point on. To do so you need to make sure your branding conforms to a key prerequisite. Is your brand packaged up in a visual studio .wsp and can it be applied to a given site collection by activating one or more features? If so then you can apply it to all ...


4

You can use the stsadm deletesite option or do it within central administration for faster site collection removal. Do you have access to either of those?


4

You would need to run the code block as the system account. The safest way to do that is by using the SPUserToken for the system account. Here is an example: public static string GetSiteOwner(string siteUrl) { var systemToken = SPUserToken.SystemAccount; using (var site = new SPSite(siteUrl, systemToken)) { return site.Owner.LoginName; ...


4

The MyLinks control is hidden in SharePoint 2010, but as you point out still present in both 2010 and 2013. The links are part of the User Profile. So they are in the User Profile Database. You can access them via the QuickLinksManager and the User Profile Property "QuickLinks". I should point out that the preferred technique in 2010 and 2013 is to use Tags ...


4

Using the following call, you can get the Login Name of the user from the AuthorID: http://siteurl/_api/web/GetUserById(<AuthorID>)/LoginName And then by using the Login Name, you can get the Picture Url with the following call: ...


3

You change it, there are couple of ways. Method 1 using the GUI, this should be done by every user. via site setting Site settings >> Click on Title, description, and icon Link under "Look and Feel", Change the name and description as per your requirements! Method 2: You can use the powershell. #Get the Web $Web= Get-SPWeb ...


3

Normally I would do this through feature stapling, however it doesn't seem to be supported in SPO/O365. There may be some workarounds though. If you are okay with doing it manually, you can create a PowerShell script that looks through your MySites and activates the branding features, and run it regularly. Alternatively you can check other solutions, but ...


3

in this case msdn is you best friend. As i created it for the company that i work for i could answer this for you ;) mysite limmit for webapplication first you need to understand what is a mysite? a mysite is a site collection. The mysite when setup if done according to best practice should be hosted on its own web application. This web application ...


3

I was able to fix the issue by removing code in Item_Person.html, Item_Person_CompactHorizontal.html (there are two), and Item_Person_HoverPanel.html for the encodedPath variable. var encodedPath = $urlHtmlEncode(ctx.CurrentItem.Path); becomes: var encodedPath = ctx.CurrentItem.Path; (Not all lines look exactly like this, but you're still ...



Only top voted, non community-wiki answers of a minimum length are eligible