Tag Info

Hot answers tagged

10

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


8

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

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

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

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


7

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


6

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


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

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

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


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

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


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

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

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

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


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


3

You should NEVER execute any SQL directly for production SharePoint databases (except the reporting database). You should use PowerShell or the Object Model. There is no way to set the default that I can see. You can loop through the existing profiles and look for the "SPS-EmailOptin" property. Then set it to 7. The challenge is to determine the profiles ...


3

You need to staple to SPSPERS#0 template. See this technet post.


3

No it's not unsupported to customize any page in SharePoint. You should of course not customize the actual file in the SharePoint root, but instead customize the page in the site (using Web UI or SharePoint Designer 2010).


3

That is correct. You cannot do a two way sync, only one or the other. This is a designed limitation. See Spence Harbars confirmation of this here. Curious note: when you work with User Profile property mappings programmatically, you can actually set both import and export properties, but it is not possible using UI, and definately not supported (and I am ...


3

Not sure, If I can post it as an answer...Please let me know if that is not the case. Issue: Memberships section on My Site's My Profile section is empty and is not showing user as being a member of recently added sites. Solution: Memberships list is populated by the User Profile Service Application - User Profile to SharePoint Full Synchronization Timer ...


3

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


3

Do you have users that are actively using the 2007 site that includes adding new items? Are they doing anything that involves WRITING to the database? If not, you could make the site read-only by setting the database to read-only http://myspexp.com/2010/06/22/read-only-site/ This isn't specific to My Site of course.



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