Ok, so I've recorded a few classic horror movies during this month. I'm not into gore, and try to stay away from that, but there are a few classics that I like to watch from time to time. One of them is "The Howling". What I didn't know, is that our favorite Emergency Medical Hologram …
When SPWeb.DoesUserHavePermissions() (SPWeb.DoesNotWork == true)
In some code I'm working on, I need to check if the user who created the request has "ManageWeb" rights, but I need to ensure that any web underneath does not. Since where I'm checking the users effective rights is some time after the user requested the action (In a different assembly not running under …
Continue reading "When SPWeb.DoesUserHavePermissions() (SPWeb.DoesNotWork == true)"
Adding more than two site collection administrators programmatically.
https://embed.spotify.com/follow/1/?uri=spotify:artist:4KfwTCNqT3gXele8WP3s5b&size=detail&theme=light The SiteAdministrators collection of the SPWeb object returns a SPUserCollection of all the Site Collection Administrators for the site in question. Unfortunately, it doesn't appear to actually allow you to "ADD" new users to the Site Collection Administrators via this collection like you can do with any other SPUserCollection for a user. Whether it's …
Continue reading "Adding more than two site collection administrators programmatically."