.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Can Admin see a user's "Personalize this Page"?

Posted By:      Posted Date: October 20, 2010    Points: 0   Category :SharePoint

Follow up question:

A Contribute user made some "Personalize this Page" changs only he can see. How can I, as an admin, see what this user has done without logging in with his acct?


View Complete Post

More Related Resource Links

How to determine if current SQL User is admin or owner?

I wish to determine, from my C# application, if the current user has admin or owner rights to the database they are connected to. I beleive I have all the information required: Servername Database name Windows/Database auth username (If database auth) password (if database auth) I'm trying to find a way that using the smo objects (smo.user), but as of yet I cant quite work it out: - How to get the appropriate user - How to determine if that user is an admin/owner. Any tips would be appreciated. If I have posted to the wrong forum, let me know - I couldnt find one that was obviously more appropriate. Thanks.

How to check if a given user is local admin or not

Hi, How to check if a user (may be domain user also) is part of local administrators group or not? Note I am NOT talking about checking of current logged in user. I should send the username & passowrd of any user (may or may not be domain user) & that should flag me whether that user is local admin or not. Please help.

How to let a non admin business user run a replication snapshot job?

According to the msdn library, I would have to give the non admin user (User1) SQLAgentUserRole privileges. But it also says that it has to be a local job and not a multi server job. Is the snapshot agent job a local or multi server job? Considering the snapshot agent is a local job and i make USER1 the owner of that job. He should be able to run the job rite? I need to give USER1 the ability to run sp_start_job to start the snapshot agent ONLY! (and not any other jobs). So what are the steps to do this? I also read that the only way to achieve this is by creating a proxy account? Is there an article somewhere that best describes this?  

How to add colleagues to a user profile without admin priviliges programatically ...

Hi,I am working on a kind of a social networking site and the use case is as follows.1. User A sends a friendship request to User B.2. User B accepts.3. User A is added as a colleague in User B's Profile.4. User B is added as a colleague in User A's Profile.Step 2-4 are done using User B's login. Step 2 and 3 go fine but in step 4 I get the following error "This operation requires you to be managing your own data or have administrator privileges.". The API being used is UserProfile.Colleagues.Create (...);What is required is obvious but not possible in this scenario. SPSecurity.RunWithElevatedPrivileges does not help.  Any other way of accomplishing this.Thanks.

GoDaddy.Com is a negligent parent, so can somebody help this newbie set up admin/user logins?


I'm becoming increasing frustrated with the lack of support at GoDaddy.Com.  Today they're not even answering their phones!

All I'm trying to do is set up an admin and several user accounts on my site so I and several users can log on. I'm not even trying to do it remotely, but on their SQL server.

1. Using Query Analyzer I created a few users:

INSERT INTO aspnet_Users(ApplicationID,  UserName, LoweredUserName,  LastActivityDate).... That worked.

2. Next, I created a couple of roles:

INSERT INTO aspnet_Roles(ApplicationID, RoleName, LoweredRoleName).... That worked.

3. I then put the users in these roles:

INSERT INTO aspnet_UsersInRoles(UserID, RoleID)....  That, too, worked.

4. But then I tried to put those users, roles, and UsersInRoles into aspnet_Membership according to their own documentation--Activating ASP.NET 2.0 Personal Web Site User Account  http://help.godaddy.com/topic/216/article/885 using  UPDATE aspnet_Membership SET IsApproved = 1 WHERE UserId = 'MyUserId'

Nothing.  Although Query Analyzer tells me the command executed successfully, the aspnet_Membership table shows no entries.

It's my understanding that getting entries into this table is critical for the login procedure. So can somebod

ScaffoldTable(false) if user is not in the admin role.


Hi guys,

I my dynamic data application, I made ScaffoldTable(false) on some of the table in a seperate partial classes. I am using linq to sql classes for my tables and Also I am using sql membership on my application.

what I want to do is that I need to make the following table's ScaffoldTable as false, if the user is not in the admin role. How can I do that ?


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Data;
using System.Configuration;
using System.Data.Linq;
using System.Data.Linq.Mapping;
using System.Linq;
using System.Xml.Linq;
using System.Linq.Expressions;
using System.Reflection;

/// <summary>
/// Summary description for CategoriesPhoto
/// </summary>

public partial class CategoriesPhoto
public class CategoriesPhotoMetaData


Restrict user with sys admin role to execute a query


Hi All


I want to restrict  a user with sys admin server role to execute a query. or is there any possibility to drop the query before it get executed (after parsing). I know i can do this using SSMS SET NOEXEC ON | OFF in Query Analyzer.

But how can i implement this when ever sysadmin user executes a particular query.


Mohd Sufian www.sqlship.wordpress.com Please mark the post as Answered if it helped.

User login and Admin login on the same site



I have a login page for my users. And I want my admin login to have its own page. Right now I have to login as an admin in the same page as the users.

How can I have 2 login on my site? I get an error if I have authentication forms on both my web.configs.


how do you balance admin and developer roles in managing security/audience and troubleshooting user


We're a 500-person services business, relatively new to SharePoint and recreating many legacy applications in SharePoint.  We have a couple developers and an administrator and have been trying very hard to segregate those roles.  The administrator controls Audiences, SharePoint groups, Distribution Lists, etc.  Developers have read access to Active Directory, but no rights to view or edit SP groups, Global Audiences, or Distribution Lists.   When user issues arise, the developer must always suspect a group membership problem but can't know enough to confirm or deny.

I would love to hear how others handle this.  Do your developers have admin rights? (And what problems does that cause?).  Do you have strict naming conventions to differentiate GA from SP from Dist List?  Do you have 3rd party tools to synchronize groups, so you can have perfect confidence that the Global Audience "Busboys" contains exactly the same users as the Active Directory group "Busboys?"  Is there a way for developers to have read-only access to the various groups so they can troubleshoot membership problems without endangering security?

Workflow doesn't strat automaticaly under non admin user account.



I need an email to be send to specified e-mail when an item is change by any user.

I ticked "Automatically start this workflow whenever an item is changed".

When I make any changes in the field by admin account workflow automatically starts, no problems with it.

But when I make any changes in the field by any other user account workflow doesn't start automatically. I still can start it manually but I need it to start automatically.

Thank you.


MDX Query runs endless if the User is not a member of the Domain Admin Group


Please, before you say "its not possible" read my post. Myself, i couldnt believe it, until i saw the behaviour with my own eyes.
Environment: SSAS 2005, tested with a MDX Query executed in the SQL Server Management Studio.

We deliver a CUBE (SSAS 2005) that we have build for our Billing System (SQL 2005). Nothing tricky on the cube definition. The cube is installed on several customer systems, runs without a problem. On our in-house test server it runs with no problem. I can execute the same MDX Query connected as a User who is a Member of the Domain Admins and with a User who is a "simple" Domain User. The same query performance, the same Resultset, experienced in-house and by many of our customer.

But on the system of one of our customer i have a really strange behaviour. If i connect on the SQL Management Studio with a User that is in the Domain Admin Role (let's call it user "A") the same MDX Query that we use in-house runs without a problem. But on the customer system i cant execute the MDX Query with a User that is not a Member of the Domain Admin Role (let's call this user "B").
The simple Domain User "B" starts the SQL Management Studio and connects to the Analysis Services Instance. No error. In the SQL Management Studio, on the left pane it has the same metadata, dimensions and members

Two roles Admin,User. How do I configure the Web config file?


After reading this helpful thread on the same subject, I still haven't quite got it.

I want these rules:

Allow Admin to everything

Deny all none authenticated users from everything

Allow User to everything exept one page 'UserAdmin.aspx'

Here is my attempt at the last item


  <location path="~/UserAdmin.aspx">
                <allow roles="Admin"/>
                <deny roles="User"/>
                <deny users="*"/>

The problem is the account with the user role is either getting all access or no access.


Admin and User login



    I am using a login control for user to login, I have a User table in sql server for user details.

I want to have a admin login for which i dont have a separate table. I want to use the same login control, and when admin login page is 

different than user login. Please guide on how to to this.

MS SQL Server: Disconnect Users From Database - Kill User Session

If you ever wanted to restore your database from a SQL backup file (.bak), but there are still users connected to your database, the backup operation will fail causing the error: Exclusive access could not be obtained because the database is in use.

Choosing Between a User Control or Web Part for SharePoint

SharePoint will only display Web Parts on a page. However, there are publicly available shims that allow you to write user controls and have them be displayed as a Web Part. From SharePoint's point of view, the shim is a Web Part. From the point of view of the user control, the shim is simply a control in .NET that is including the user control

Creating Sites/Lists/List Items under Current User Context in SharePoint By Using SPUserToken

Usually we do this by performing the action under RunWithElevatedPrivileges method and updating the listitem using SPListItem.SystemUpdate() method (see here). but this approach has its own flaws like (RunWithElevatedPrivileges will run under system account, we cannot use SystemUpdate for SPSite,SPWeb,SPList, since it runs under system we will "CreatedBy" by as SystemAccount).

How to track the changes of user contacts(colleagues) by using SharePoint API

We might have seen colleague tracker web part which keep tracks the changes made in our contacts/colleagues details like profile/lists/sites. The same tracking mechanism can be implemented by using MOSS API in any custom web part/ web control/ feature/web service...

UserProfile.GetColleagueChanges is the method which returns all changes happened with the contacts, this method also accepts a Query (UserProfileChangeQuery) where we can specify different parameters to filter the changes
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend