We are using SharePoint Foundation 2010. We are creating content database and site collection using server object model. We have more than 1000 users in SharePoint. As content database and site collection creation are administartive task, only farm administartor can do that. In our case any user should be able to create content database and site collection with farm administartor account. Can we use SPUser or Is there any other way to do this ? Can you please provide me any code or link through which I can resolve the above issue ?
How to impersonate Farm Administrator in server object model?
934 Views Asked by Shailesh Jaiswal At
1
There are 1 best solutions below
Related Questions in SHAREPOINT-2010
- how to empty the recycle bin in SharePoint using PowerShell?
- Splitting Child forest from Main forest will impact SharePoint 2013 or 2016 On-premises environment?
- SharePoint Upload Files To Document Library Using Rest API
- Choice radio buttons not updating the sharepoint list
- Is there any option to get this issue resolved as I can only think of OR statement in Edit conditional Formula on sharepoint?
- What is RoleAssignment, RoleDefinition, RoleBinding in Sharepoint On-premise? How to remove a user from the permission list at site level?
- Workflow Error Occurred in SharePoint site
- How to visualize "list progress" in Sharepoint/Teams
- QuickSight Paginated Report Publish to Email Endpoints
- SharePoint CAML Query to Filter Data By Date
- Sharepoint workflow verification
- Way to find modern site is public or private using CSOM
- sharepoint jquery for sum of two column
- Create a flow to move all documents from recycle bin to another library
- How to dowload many files or folders from sharepoint
Related Questions in IMPERSONATION
- OKTA User Impersonation _Masquerade
- Export Excel to PDF with Microsoft.Office.Interop in impersonated context
- In C#, is it possible to Impersonate as an admin user and Run another program with Admin privileges without it asking for a password? - SOLVED
- unable to stop impersonation of an GCP Service Account
- Cannot Impersonate service account using PHP google/apiclient library
- Running ASP.NET Core Application on IIS with User Context Impersonation
- Is it possible to use Windows impersonation through a web application to access PowerBI Report Server
- Laravel 10 Auth0 and 404labfr/laravel-impersonate
- GDrive Impersonation with Powershell
- get user token of user running explorer.exe
- Impersonate logged in user
- Using multiple gMSA accounts for SQL Server authentication in .NET
- How verification of a "google sign-in" JWT works
- Can not send livy rest api using proxy user into kerberized hadoop cluster
- How to get current user logged in for EnvironmentUserName instead of "IIS APPPOOL\DefaultAppPool" when web app is deployed to IIS
Related Questions in SHAREPOINT-API
- Execution Stuck at Get-PnPPage if function executed on Button Click
- Move sharepoint files using office365 Rest API
- Can i show a Planner link inside SharePoint team site home page using Graph API
- SharePoint Graph API - Update metadata on a child records
- Copy Files from SharePoint Online using Azure Data Factory and Microsoft Graph API
- An error occurred while receiving the HTTP response to https://login.microsoftonline.com/extSTS.srf
- API Sharepoint : List and download files with App Azure
- Change file custom properties/columns in SharePoint with Python API
- Sharepoint REST API: Filter GetFolderByServerRelativeUrl by TimeLastModified
- Receiving empty brackets array of Sharepoint REST API request?
- SharePoint Online 'GetListItemChangesSinceToken' API Issue
- connect to sharepoint REST API with username and password
- SharePoint Graph API GET list of items in drive with expanded driveItem description
- How to Upload a File in Chunks to SharePoint (Office 365) via API in Python (using startupload/ continueupload/ finishupload)
- Download file from SharePoint via API using Python
Related Questions in SHAREPOINT-OBJECT-MODEL
- Get value from taxonomy field
- Why SharePoint client object model retrieves all items when query fails?
- How to filter ListItemCollection sharepoint object model
- Is there any way to get custom column/property value of sharepoint document using c#?
- SharePoint Online UserInfo endpoint URL
- SharePoint API for both 2016 On-Premise and Online
- SharePoint 2013 online can I set other column values when uploading a file using REST?
- Can't retrieve metadata from a document in SharePoint inside a folder in javascript client object model
- find out what item id failed executeQueryAsync item creation
- PreSaveAction is not working in SharePoint office 365 (2016)
- How to get all of the deactivated Features in the farm that could be activated for the specific web using Sharepoint Server Object Model?
- Updating SPFile properties using SPFile.Update()
- Sharepoint 2010 CSOM Object - List Column Type NOTE
- Get user from sharepoint group and redirect
- Authenticating client with office 365/SharePoint online
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
It sounds like you might need to use the SPSecurity.RunWithElevatedPrivleges. This will allow you to run the code as if you were the
farm administratorthe application pool identity account. Be careful because it gives the user running the codefullhigher access, but it sounds like that is what you want.