Tag Info

Hot answers tagged

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


9

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


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


6

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


6

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


5

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


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


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

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

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


4

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


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

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

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

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.


3

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


3

Using the sharepoint Management Shell you can execute the following script. Replace the url with one of the application url's your are running on: $mySiteUrl = "http://portal.contoso.com" $sc = Get-SPServiceContext($mySiteUrl) $upm = new-object Microsoft.Office.Server.UserProfiles.UserProfileManager($sc) $upm.MySiteHostUrl If no url is available take one ...


3

The issue is the lists get created after the feature stapling is called in the Site Collection creation process. The My Site is a new Site Collection, not a new subsite, that's why the event receivers don't fire and the manual activation works. I have used a thread pool solution like the one in the link below to delay the execution until the lists have been ...


3

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


3

You need to setup the site collection's search settings (Site Actions -> Site Settings -> Search Settings). Enable custom scopes by pointing the site to your search center, and set the dropdown mode to enable those scopes to be used. Additionally, you should also point it to the applicable search results for your search center, so that when users perform a ...


3

You can create mult-tenant aware web application and service applications within your existing farm (it will coexist with your current configuration). However, before proceeding down that route, you need to understand the limitations and be sure it really fits your needs (and you can support it). If all users are part of the same forest / domain, you can ...


3

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


3

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

I don't think there is a yes version of the answer for this question at present: http://community.office365.com/en-us/forums/154/t/74400.aspx This tool says that it will allow you to migrate all your content: http://www.metavistech.com/category/tools-office-365 then in the meantime, you could do the following, as you migrate the content: In central ...


2

Are you adding it to each site individually? All of the changes I'm familiar with would have to be done on a site by site basis. You could potentially back some things into the masterpage, but it would have to be deployed to all existing sites. Here is a great resource for customizing MySite: ...


2

To turn off automatic deletion of MySites, you must disable the Job Definition. Navigate to Central Admin > Monitoring > Review Job Definitions > Keep the view set to All and look through the list until you find "My Site Cleanup Job". Disable it and that should prevent the automatic deletion. I'm unsure if this disables the nofications also.



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