Tag Info

New answers tagged

2

There is no way you'll ever get access to the users password. (In fact SharePoint don't know it, as Authentication is handles by other components. In fact even these hopefully don't know it, but only have some hash of it). To access anything in the host web you can use the cross-domain library. Login will be handlede automatically. See How to: Access ...


0

Oh You are using the Active Directory Import. You are out of luck. ADI import does not support the complex property import. Profile Picture fall under the Complex property so it does not supported. We had the same issue and we switched to UPS after couple of months troubleshooting with MSFT support.


0

The AD import option does not automatically synchronize photos from Active Directory to SharePoint Server 2013. If you need to import photos you must use profile synchronization. For more information, see Microsoft technet article After starting UPSS, Do iisreset. then start full profile sync. Hope this helps.


1

Add these to your master page where you would like to display the user ID. PropertyName should be the name of the user property. Also includes example how to get the StaffId parameter into JavaScript variable and use jQuery to inject ot somewhere on the page. <%@ Register TagPrefix="SPSWC" Namespace="Microsoft.SharePoint.Portal.WebControls" ...


0

Its easy. https://msdn.microsoft.com/en-us/library/office/jj163800.aspx User profiles and user profile properties provide information about SharePoint users. SharePoint Server 2013 provides the following APIs that you can use to programmatically work with user profiles: Client object models for managed code .NET client object model Silverlight client ...


1

You can add a Script Editor Web Part to the home Page and then use JavaScript/jQuery/REST API to get required information. Use HTML/CSS to present it in nice and friendly way. http://www.vrdmn.com/2013/02/sharepoint-2013-working-with-user.html (function($){ $(document).ready(function(){ // Ensure that the SP.UserProfiles.js file is loaded ...


0

Set the properties of the field so it is not editable by the user. Check "Do not allow users to edit values for this property".


0

here is what MSFT stance on this: I should say that, REST service partly work in SharePoint Online. I’d tried to confirm this question in our internal resource, and got the information as the following: With the scenario we use REST service in InfoPath, it will works when we preview forms in the client, as soon as we publish it to SharePoint ...


2

That is how crawl works. If you have PhoneNumber in these format: 1234567890 1234 567890 123 4567 890 123 456 7890 When crawling, every sign or space " ", "-", "_", "(", ")" is like delimiter and it is putted in new place inside array. For example: for 1. it will be array[0] with (1234567890), for 2. will be array[0 and 1] with (1234 and 567890) ...


3

I would suggest to do not reinvent the wheel resolve personal site url from user login name directly instead of constructing the url to display form of User Information list (/_layouts/15/userdisp?ID=<user id>). The following example demonstrates how to retrieve user personal site url: function navigateToPersonalSite() { ...


0

You can use REST: var getUserId = function() { return $.ajax({ url: "<site url>/_api/web/siteusers?$select=Id&$filter=Title eq '<user's name>'", type: 'GET', headers: { 'accept': 'application/json;odata=nometadata', // JSON Lite should be available in SP1. If not, use odata=verbose instead ...


1

you can use: <script> var userId = _spPageContextInfo.userId; </script> _spPageContextInfo is your new best friend


0

You do that like you would with a custom column on a list. You instantiate the UserProfileManager, and then you can either loop through each "Profile" or you can get a specific profile and set the property. Example iterating through each: using (var site = new SPSite("http://contoso.com") { var serviceContext = SPServiceContext.GetContext(site); ...


1

You can set it for example via PowerShell (sorry, I don't know which language do you really need): [void][Reflection.Assembly]::LoadWithPartialName("Microsoft.Office.Server") Add-PSSnapin Microsoft.SharePoint.PowerShell $site = Get-SPSite http://YourSiteCollection $serviceContext = Get-SPServiceContext $site $upm = New-Object ...


1

That code will only run with credentials provided for a tenant administrator. It will not work against App-only policy. There is a User Profiles scope in the app permissions manifest, but, like the Taxonomy permission scope, it does not seem to actually do anything (in an Office 365 context, anyway). ...


0

Synchronization with Active Directory could be a issue. If you remove those fields from being synchronized with AD and check you'll probably be able to enable the check box.



Top 50 recent answers are included