New answers tagged user-accounts
You can use custom entity picker. It is very big tutorial to provide it in this answer. The main steps: Create custom field Create class which is inherited from EntityEditorWithPicker Create class which is inherited from PickerDialog Create class which is inherited from SimpleQueryControl
Your question is about multiple requirements:- I need to change my current user in my SharePoint site. How can I change my current user? How can I add sub menu (sign in as different user) to my menu ? So, here there are 3 solutions:- 1. Launch your web browser as another user For IE --> Navigate to C:\Program Files (x86)\Internet Explorer ...
It would, but it would need high permissions in the AD from the user executing the code (be that elevated or not), meaning that the user must have privileges to add users in AD. Appart from that, it would be just like any C# code, you can follow this post for some sample code: ...
You can use something like: SPUser newUser = SPContext.Current.Web.EnsureUser(@"domain\logonname");
Top 50 recent answers are included