Import List Security

Posted on 11 CommentsPosted in SharePoint 2007, STSADM Commands

If you saw my last post, Exporting List Security Settings, then you know what this post is all about.  I needed a way to be able to copy the security settings from one variation to another or from one farm to another.  I already had my gl-copylistsecurity command which could handle the first piece of this but I needed another set of commands to handle going from one farm to another.  The first was gl-exportlistsecurity […]

Exporting List Security Settings

Posted on 6 CommentsPosted in SharePoint 2007, STSADM Commands

I’ve been doing a lot with variations recently and have encountered numerous challenges with keeping data and lists in sync between the various variations.  One of the things that we ended up implementing on my current project was a simple event receiver which copied items from one variation to another when that item was approved.  From this you can obviously conclude that we had matching lists in each variation.  One of the challenges with this […]

Set Anonymous Access

Posted on 9 CommentsPosted in SharePoint 2007, STSADM Commands

If you’re trying to configure a site for anonymous access via stsadm you can get most of the way using the out of the box "extendvs" (or my createwebapp) and "authentication" commands. The problem is that this only enables the web application for anonymous access but it doesn’t "turn it on" at the site collection or web level. To complete the process I created a new command: gl-setanonymousaccess. There are three levels that you can […]

Add User Policy for Web Application

Posted on 4 CommentsPosted in SharePoint 2007, STSADM Commands

I needed to create this command in order to solve an odd permissions problem that I was experiencing. I had a web application (http://teamsites) which I’d setup and needed to start migrating sites to. When I went to create the site collection using createsite I got the following error: "Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))" (I got the same "Access is Denied" error when I attempted this via central admin). After doing some […]

Add User 2

Posted on 31 CommentsPosted in SharePoint 2007, STSADM Commands

This is one of those commands that I really shouldn’t have had to create. All I wanted to do was use stsadm to add an AD group to a site collection. Unfortunately the built-in adduser command requires email address and display name. The display name wasn’t a huge deal but requiring an email just messed me up. So I created my own adduser command which allowed the email to be optional so that AD groups […]

Personalization Service Permissions

Posted on 17 CommentsPosted in SharePoint 2007, STSADM Commands

While walking another IT user through the SSP admin interface the other day I discovered that even though the user was a Farm Administrator that user was not able to get into certain pages within the SSP admin site (such as the profile properties page). Turns out that there’s additional permissions that must be granted via the "Personalization Service Permissions" page located under the "User Profiles and My Sites" section. As my goal is to […]

Copy List Security (permissions) Settings

Posted on 27 CommentsPosted in SharePoint 2007, STSADM Commands

I got a comment the other day on my blog about an issue with the copying/importing of lists. The problem was that the security settings on the list were not being preserved during the import. The natural assumption is that if I specify "-includeusersecurity" that any permissions on the list would be preserved. In other words, if my source list was not inheriting permissions on the list itself, a folder, or an individual item, then […]

User Profile Properties

Posted on 16 CommentsPosted in SharePoint 2007, STSADM Commands

After running our upgrade and inspecting the user profile properties on the SSP that we created it was quickly discovered that some properties needed to be modified. Some of the changes were as simple as determining whether or not the property should be visible on the profile page or whether the user should be allowed to edit the property and some of them needed to be mapped to the corresponding field in Active Directory. As […]

User Profile Privacy Policies

Posted on 1 CommentPosted in SharePoint 2007, STSADM Commands

One of the new features with SharePoint 2007 is the ability to determine who can see different profile properties when looking at a users profile page. This is a great and necessary feature as it makes sure that various privacy concerns are addressed. My company’s privacy policies state that no personal information is to be displayed on our intranet – that includes things such as the birth date and home phone number. By default when […]

Enumerate Effective Base Permissions

Posted on 13 CommentsPosted in SharePoint 2007, STSADM Commands

I created this command because I was trying to debug an issue I was having. If you go through the central admin and remove a site permission for a web app (central admin > app management > user permissions for web applications) certain functionality that should work regardless of what setting you’ve removed no longer functions. For example – I removed “Apply Themes and Borders” for my intranet app: I then went to site settings […]