Hot answers tagged

13

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

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: http://stackoverflow.com/questions/1137445/how-to-prevent-a-mysite-...


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; }


8

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

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 Intranet-Sites-...


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

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

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

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 ...


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

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 ...


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 ...


5

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 ...


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

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

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

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

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

I could reproduce the behavior.. Apart from the things you have already discovered, check following to see if that fix your problem. Under Central Administration, UPS --> People --> Manage Policies, Check under "Membership" category for the item "SharePoint Site" and make sure it is ENABLED. If it is disabled, you would see nothing under Membership in your ...


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

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

Verify that My Site settings in User Profile Service Application are set to point to this correct My Site location (My Site Settings --> Setup My Sites --> My Site Host). Verify that you don't have multiple WFE's in production that would have conflicting settings in terms of IIS bindings. Verify trusted My Site host location doesn't include the old host ...


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

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: http://siteurl/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)?@v='<LoginName>'&$select=...


3

The issue here is that you are modifying the web parts collection at the same time as iterating through it. You need to build a separate collection and then use that for the deletion e.g.: SPFile page = web.RootFolder.Files["default.aspx"]; SPLimitedWebPartManager wpmShared = page.GetLimitedWebPartManager(PersonalizationScope.Shared); List<WebPart> ...


3

I believe you can add a new uerprofile property inside the User Profile Service application with the name as "Org Unit" and configure it to with any specific AD property.Also you can configure it as whether to show this in the profile page, allow it as editable etc..



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