Tag: user

Podemos obtener las propiedades por medio de un control llamado ProfileProperty. 1 Registrar el namespace <!--SPM:<%@ Register Tagprefix="PortalWebControls" Namespace="Microsoft.SharePoint.Portal.WebControls" Assembly="Microsoft.SharePoint.Portal, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>--> 2 Cargar el control <!--SPM:<PortalWebControls:ProfilePropertyLoader runat="server" />--> 3 Añadir una linea por cada propiedad (Mantenemos la clase Out-of-the-Box ms-hide para ocultarlas) <!--SPM:<PortalWebControls:ProfilePropertyValue CssClass="ms-hide" PropertyName="MY_PROPERTY_NAME" ApplyFormatting="False" runat="server" ShowPrivate="True" PrefixBrIfNotEmpty="False" />--> Nota: En […]
Podemos obtener un usuario de SharePoint con el metodo EnsureUser. Caso práctico: Obtener usuario para crear un nuevo item en una lista donde uno de los campos a rellenar es del tipo User. Dentro del contexto de SharePoint podemos obtenerlo de este modo: Web mySite = clientContext.Site.OpenWeb("mySiteUrl"); clientContext.Load(mySite); clientContext.ExecuteQuery(); User myUser= pocSite.EnsureUser("i:0#.f|membership|myUser@myDomain.com"); clientContext.Load(myUser); clientContext.ExecuteQuery(); Ejemplo […]
$caption = "TITLE" $message = "MESSAGE" $yes = new-Object System.Management.Automation.Host.ChoiceDescription "&Yes","HELP_FOR_YES" $no = new-Object System.Management.Automation.Host.ChoiceDescription "&No","HELP_FOR_NO" $choices = [System.Management.Automation.Host.ChoiceDescription[]]($yes,$no) $answer = $host.ui.PromptForChoice($caption,$message,$choices,0) if($answer -eq 0){ //YOUR_CODE_IF_YES }
1. Go to Administrative Tools 2. Open Active Directory Users and Computers 3. Go to Builtin and you will see some Groups, like Administrators 4. Double-click on Administrators group 5. Go to Members Tab and click on Add… to insert users as administrators 6. You will see new users in the Members List
Basically: Password must not contain the user’s entire Account Name. Password must contain an Uppercase character, a Lowercase character and a number (0 through 9). More info: http://technet.microsoft.com/en-us/library/cc786468%28v=ws.10%29.aspx
I’ve found an interesting link about how to retrieve some properties of user profiles in SharePoint 2013 by using its client object model, like this: const string serverUrl = "http://serverName/"; const string targetUser = "domainName\userName"; ClientContext clientContext = new ClientContext(serverUrl); PeopleManager peopleManager = new PeopleManager(clientContext); string[] profilePropertyNames = new string[] { "PreferredName", "Department", "Title" }; […]