User Profiles properties in SharePoint 2013
Hello Everyone,
Can we set User Profiles properties in SharePoint 2013 ?
Most of them, yes. What are you specifically looking to do?
Trevor Seward
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.
Similar Messages
-
Reorder User Profile properties in SharePoint 2013.
Hi, I have created custom user profile properties in SharePoint 2013 under User Profile Service Application, now I want to change the order of properties as well as also want to move OOTB properties and custom properties from one section to another section.
Is there any Power Shell command available to move properties between sections?
Regards,Hi Prakash,
Use the script in this blog to retrive user profile properties from a certain section.
http://stevemannspath.blogspot.in/2013/05/sharepoint-20102013-using-powershell-to.html
# Dynamic Settings
$mySiteUrl = "http://mysite.company.net"
$findProperty = "PictureUrl"
Next, we needed to establish the server context:
# Obtain Context based on site
$mySiteHostSite = Get-SPSite $mySiteUrl
$mySiteHostWeb = $mySiteHostSite.OpenWeb()
$context = Get-SPServiceContext $mySiteHostSite
From the context we can instantiate a ProfileManager object and retrieve all of the SharePoint User Profiles:
# Obtain Profiles from the Profile Manager
$profileManager = New-Object Microsoft.Office.Server.UserProfiles.UserProfileManager($context)
$AllProfiles = $profileManager.GetEnumerator()
$outputCollection = @()
Next, we loop through the profiles and retrieve the account name (for identification purposes) and the property we are interested in finding:
# Loop through profiles and retrieve the desired property
foreach ($profile in $AllProfiles)
$output = New-Object System.Object
$output | Add-Member -type NoteProperty -Name AccountName -Value $profile["AccountName"].ToString()
$output | Add-Member -type NoteProperty -Name $findProperty -Value $profile[$findProperty]
$outputCollection += $output
Finally, we list out the collection items that do not have a value for the property (ie. null):
# List all Accounts that do not contain the property
$outputCollection | Where-Object {[bool]$_.($findProperty) -ne $true}
FULL SCRIPT
# Dynamic Settings
$mySiteUrl = "http://mysite.company.net"
$findProperty = "PictureUrl"
Write-Host "Beginning Processing--`n"
# Obtain Context based on site
$mySiteHostSite = Get-SPSite $mySiteUrl
$mySiteHostWeb = $mySiteHostSite.OpenWeb()
$context = Get-SPServiceContext $mySiteHostSite
# Obtain Profiles from the Profile Manager
$profileManager = New-Object Microsoft.Office.Server.UserProfiles.UserProfileManager($context)
$AllProfiles = $profileManager.GetEnumerator()
$outputCollection = @()
# Loop through profiles and retrieve the desired property
foreach ($profile in $AllProfiles)
$output = New-Object System.Object
$output | Add-Member -type NoteProperty -Name AccountName -Value $profile["AccountName"].ToString()
$output | Add-Member -type NoteProperty -Name $findProperty -Value $profile[$findProperty]
$outputCollection += $output
# List all Accounts that do not contain the property
$outputCollection | Where-Object {[bool]$_.($findProperty) -ne $true}
In this blog, we can refer the script to create new section and new properties to this section.
http://sergioblogs.blog.co.uk/2013/01/08/powershellscript-to-add-new-user-profile-properties-from-the-term-store-15407371/
# PowerShell Script to Add New User Profile Properties from the Term Store
# Get parameters
$mySiteWebApp = Read-Host "Please enter the MySite Web Application URL"
$termStoreSrvApp = Read-Host "Please enter the Term Store Service Application name"
# Add SharePoint DLLs
[void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
[void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Sharepoint.Administration")
[void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Sharepoint.Taxonomy")
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Office.Server")
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Office.Server.UserProfiles")
# Get site collection for MySite
#$sitecollection = Get-SPSite | Where-Object {$_.Url -eq "http://yourMySiteHostURL"}
$sitecollection = Get-SPSite | Where-Object {$_.Url -eq $mySiteWebApp}
if($sitecollection -ne $null) {
# Get the taxonomy session
$taxSession = Get-SPTaxonomySession -site $sitecollection
# Get the term store - you will need to amend the value for the correct name of your MMS Name
#$termStore = $taxSession.TermStores["Managed Metadata Service"]
$termStore = $taxSession.TermStores[$termStoreSrvApp]
if($termStore -ne $null) {
# Get the term store group for Swisslo
$termStoreGroup = $termStore.Groups["Name of Term Store"]
# Get the term sets - Preset with examples for terms (Customer, Function, IndustrySegment, Language, Location, Organization), amend as required
$termSetCustomer = $termStoreGroup.TermSets["Customer"]
$termSetFunction = $termStoreGroup.TermSets["Function"]
$termSetIndustrySegment = $termStoreGroup.TermSets["Industry Segment"]
$termSetLanguage = $termStoreGroup.TermSets["Language"]
$termSetLocation = $termStoreGroup.TermSets["Location"]
$termSetOrganization = $termStoreGroup.TermSets["Organization"]
# Get the user profile app - change UPS Name as required
$serviceApplication = Get-SPServiceApplication | ?{$_.TypeName -eq "User Profile Service Application"}
$serviceContext = [Microsoft.SharePoint.SPServiceContext]::GetContext($serviceApplication.ServiceApplicationProxyGroup, [Microsoft.SharePoint.SPSiteSubscriptionIdentifier]::Default)
$userProfileConfigManager = New-Object Microsoft.Office.Server.UserProfiles.UserProfileConfigManager $serviceContext
$userProfilePropertyManager = $userProfileConfigManager.ProfilePropertyManager
$userProfileTypeProperties = $userProfilePropertyManager.GetProfileTypeProperties([Microsoft.Office.Server.UserProfiles.ProfileType]::User)
$userProfileSubTypeManager = [Microsoft.Office.Server.UserProfiles.ProfileSubTypeManager]::Get($serviceContext)
$userProfile = $userProfileSubTypeManager.GetProfileSubtype([Microsoft.Office.Server.UserProfiles.ProfileSubtypeManager]::GetDefaultProfileName([Microsoft.Office.Server.UserProfiles.ProfileType]::User))
$userProfileProperties = $userProfile.Properties
$ps = $userProfileSubTypeManager.GetProfileSubtype([Microsoft.Office.Server.UserProfiles.ProfileSubtypeManager]::GetDefaultProfileName([Microsoft.Office.Server.UserProfiles.ProfileType]::User))
$pspm = $ps.Properties
#Create new section in User Profiles - set the 'Name of the Section' throughout next chunk of code
Write-Host "Creating new section for 'Name of Section'...."
$allEntries = $userProfileConfigManager.GetPropertiesWithSection();
$sectionExists =$false
foreach ($temp in $allEntries) {
if($temp.Name -eq "Name of Section") {
Write-Host "Section for 'Name of Section' already exists.";
$sectionExists = $true;
$section = $temp
if ($sectionExists -ne $true){
$section = $allEntries.Create($true);
$section.Name = "Name of Section";
$section.ChoiceType = [Microsoft.Office.Server.UserProfiles.ChoiceTypes]::Off;
$section.DisplayName = "Name of Section"
$section.Commit();
Write-Host "Section 'Name of Section' created"
Write-Host "Creating new properties...."
$Privacy = "public"
$PrivacyPolicy = "OptIn"
$coreProperties = $userProfilePropertyManager.GetCoreProperties()
# Setting Custom Properties below, amend names as you did above to match your fields
# Set new Custom Property for "Customer"
$PropertyName = "SLCustomer"
$PropertyDisplayName = "Customer"
$newProperty = $coreProperties.Create($false)
$newProperty.Name = $PropertyName
$newProperty.DisplayName = $PropertyDisplayName
$newProperty.Type = "string"
$newProperty.Length = "50"
$newProperty.IsMultivalued = $true
$newProperty.TermSet = $termSetCustomer
# Add the new property
$coreProperties.Add($newProperty)
$profileTypeProp = $userProfileTypeProperties.Create($newProperty)
$profileTypeProp.IsVisibleOnEditor = $true
$profileTypeProp.IsVisibleOnViewer = $true
$userProfileTypeProperties.Add($profileTypeProp)
$profileSubTypeProp = $pspm.Create($profileTypeProp);
$profileSubTypeProp.IsUserEditable = $true
$profileSubTypeProp.DefaultPrivacy = $Privacy
$profileSubTypeProp.AllowPolicyOverride
$pspm.Add($profileSubTypeProp);
# Set new Custom Property for "Function"
$PropertyName = "SLFunction"
$PropertyDisplayName = "Function"
$newProperty = $coreProperties.Create($false)
$newProperty.Name = $PropertyName
$newProperty.DisplayName = $PropertyDisplayName
$newProperty.Type = "string"
$newProperty.Length = "50"
$newProperty.IsMultivalued = $true
$newProperty.TermSet = $termSetFunction
# Add the new property
$coreProperties.Add($newProperty)
$profileTypeProp = $userProfileTypeProperties.Create($newProperty)
$profileTypeProp.IsVisibleOnEditor = $true
$profileTypeProp.IsVisibleOnViewer = $true
$userProfileTypeProperties.Add($profileTypeProp)
$profileSubTypeProp = $pspm.Create($profileTypeProp);
$profileSubTypeProp.IsUserEditable = $true
$profileSubTypeProp.DefaultPrivacy = $Privacy
$profileSubTypeProp.AllowPolicyOverride
$pspm.Add($profileSubTypeProp);
# Set new Custom Property for "Industry Segment"
$PropertyName = "SLIndustrySegment"
$PropertyDisplayName = "Industry Segment"
$newProperty = $coreProperties.Create($false)
$newProperty.Name = $PropertyName
$newProperty.DisplayName = $PropertyDisplayName
$newProperty.Type = "string"
$newProperty.Length = "50"
$newProperty.IsMultivalued = $true
$newProperty.TermSet = $termSetIndustrySegment
# Add the new property
$coreProperties.Add($newProperty)
$profileTypeProp = $userProfileTypeProperties.Create($newProperty)
$profileTypeProp.IsVisibleOnEditor = $true
$profileTypeProp.IsVisibleOnViewer = $true
$userProfileTypeProperties.Add($profileTypeProp)
$profileSubTypeProp = $pspm.Create($profileTypeProp);
$profileSubTypeProp.IsUserEditable = $true
$profileSubTypeProp.DefaultPrivacy = $Privacy
$profileSubTypeProp.AllowPolicyOverride
$pspm.Add($profileSubTypeProp);
# Set new Custom Property for "Language"
$PropertyName = "SLLanguage"
$PropertyDisplayName = "Language"
$newProperty = $coreProperties.Create($false)
$newProperty.Name = $PropertyName
$newProperty.DisplayName = $PropertyDisplayName
$newProperty.Type = "string"
$newProperty.Length = "50"
$newProperty.IsMultivalued = $true
$newProperty.TermSet = $termSetLanguage
# Add the new property
$coreProperties.Add($newProperty)
$profileTypeProp = $userProfileTypeProperties.Create($newProperty)
$profileTypeProp.IsVisibleOnEditor = $true
$profileTypeProp.IsVisibleOnViewer = $true
$userProfileTypeProperties.Add($profileTypeProp)
$profileSubTypeProp = $pspm.Create($profileTypeProp);
$profileSubTypeProp.IsUserEditable = $true
$profileSubTypeProp.DefaultPrivacy = $Privacy
$profileSubTypeProp.AllowPolicyOverride
$pspm.Add($profileSubTypeProp);
# Set new Custom Property for "Location"
$PropertyName = "SLLocation"
$PropertyDisplayName = "Location"
$newProperty = $coreProperties.Create($false)
$newProperty.Name = $PropertyName
$newProperty.DisplayName = $PropertyDisplayName
$newProperty.Type = "string"
$newProperty.Length = "50"
$newProperty.IsMultivalued = $true
$newProperty.TermSet = $termSetLocation
# Add the new property
$coreProperties.Add($newProperty)
$profileTypeProp = $userProfileTypeProperties.Create($newProperty)
$profileTypeProp.IsVisibleOnEditor = $true
$profileTypeProp.IsVisibleOnViewer = $true
$userProfileTypeProperties.Add($profileTypeProp)
$profileSubTypeProp = $pspm.Create($profileTypeProp);
$profileSubTypeProp.IsUserEditable = $true
$profileSubTypeProp.DefaultPrivacy = $Privacy
$profileSubTypeProp.AllowPolicyOverride
$pspm.Add($profileSubTypeProp);
# Set new Custom Property for "Organization"
$PropertyName = "SLOrganization"
$PropertyDisplayName = "Organization"
$newProperty = $coreProperties.Create($false)
$newProperty.Name = $PropertyName
$newProperty.DisplayName = $PropertyDisplayName
$newProperty.Type = "string"
$newProperty.Length = "50"
$newProperty.IsMultivalued = $true
$newProperty.TermSet = $termSetOrganization
# Add the new property
$coreProperties.Add($newProperty)
$profileTypeProp = $userProfileTypeProperties.Create($newProperty)
$profileTypeProp.IsVisibleOnEditor = $true
$profileTypeProp.IsVisibleOnViewer = $true
$userProfileTypeProperties.Add($profileTypeProp)
$profileSubTypeProp = $pspm.Create($profileTypeProp);
$profileSubTypeProp.IsUserEditable = $true
$profileSubTypeProp.DefaultPrivacy = $Privacy
$profileSubTypeProp.AllowPolicyOverride
$pspm.Add($profileSubTypeProp);
Write-Host "Completed"
} else {
#Termstore not found
Write-Host "Unable to connect to term store"
} else {
Write-Host "Unable to connect to MySite Web Application"
Need more effort to change this code to work for your requirement.
Thanks & Regards,
Emir
Emir Liu
TechNet Community Support -
Temp-Contract Worker User Profile Synchronization in SharePoint 2013
Hi All,
I was wondering if anyone could provide some feedback on what is the best practice for configuring Temp or Contract worker user profile services in SharePoint 2013. We have had lot of issues within MySites when we make these types of workers AD account inactive
and then active again when they come back on projects. The user profile synchronization does not work correctly and MySites has issues loading the profile etc. Also in the same context are there best practices for Name/Title/Department changes as well.
thank you for your feedback!
AJ
Ajay MandalGiven what you describe I assume you've created a user profile Sync connection filter to remove disabled AD accounts from the user profile sync. That's why you are running into problems. When a user is missing from the import their profile is
deleted within an hour or so, but their MySite isn't deleted for 14 days (to allow time for a manager to clean it off). If the user is reactivated within the 14 day period their old mySite is still there, but is no longer referenced by the new profile
that is created. So When the user goes to their profile it tries to create a new mySite where one already exists. It can't do that.
The same thing will happen if you delete the contractor's user account, but then recreate them in AD when they return. The only way to fix it is to make sure both the profile and mySite site collection in /Personal/ have been deleted before re-adding
an old contractor.
Paul Stork SharePoint Server MVP
Principal Architect: Blue Chip Consulting Group
Blog: http://dontpapanic.com/blog
Twitter: Follow @pstork
Please remember to mark your question as "answered" if this solves your problem. -
When voting, survey Sharepoint 2013, there is a field created by whom. But the name is not enough. Necessary to add the department name of the profile data in the exported list excel.
Hi,
The OOTB feature “Export to Spreadsheet” won’t contain the department in the exported report, we will need to create a custom one programmatically.
We can use SharePoint Object Model to retrieve the data from the Survey and the User Profile Service, then generate an Excel Spreadsheet with the data we need.
SharePoint Object Model -
SPListItem class
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistitem.aspx
Add, Update and Delete List Items Programmatically in SharePoint
http://www.mindfiresolutions.com/Add-Update-and-Delete-List-Items-Programmatically-in-Sharepoint-372.php
More information about
SharePoint Object Model:
http://msdn.microsoft.com/en-us/library/ms473633.ASPX
How to: Work with user profiles and organization profiles by using the server object model in SharePoint 2013
http://msdn.microsoft.com/en-us/library/office/jj163142(v=office.15).aspx
For about
generating an Excel document:
http://www.codeproject.com/Articles/20228/Using-C-to-Create-an-Excel-Document
Or you can post another question to
Excel for Developers for about creating an Excel file programmatically:
http://social.msdn.microsoft.com/Forums/office/en-US/home?forum=exceldev
Feel free to reply if there are still any questions.
Best regards
Patrick Liang
TechNet Community Support -
Unable to read the FBA user user profile properties in Sharepoint 2010
hi,
how to read the FBA user profile properies in code . i have Sharepoint2010 FBA site when i need to read teh FBA user profile
when i am trying read the properties by using
UserProfile CurrentUserProfile = upm.GetUserProfile(i:0#.f|fbamembershipprovider|[email protected])
i am getting soem exception like
unable to read user profiles how to fix this isse
Srinivashi,
thanks for response i have fba data base in my sql server where user user formation will store i am using (http://sharepoint2010fba.codeplex.com/documentation) . i am using user name as email id for user login. at the time of user signup process in
to sharepoint i am storing the user deatils like user name ,password, passwordquestion, answer etc at the same time i am storuing another deatils like firstname last name age sex etc to anothe list which is sharepoint2010 list. user login into sharepoint
site i am getting the user display namelike"#:0|Parvider|[email protected] i need to change this name like "First Name Last Name " how can i do it.. database does not contain any deatils related to First Name Last Name this information extist
in sharepoint list
this is my requirement
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/ed543e3c-00e5-4a52-92ee-75f49cd0fbb2/how-to-change-the-user-display-name-in-fba-site-and-place-my-own-display-name-in-sharepoint2010-fba?forum=sharepointdevelopmentprevious#ed543e3c-00e5-4a52-92ee-75f49cd0fbb2
Srinivas -
User profile service in SharePoint 2013
Hi,
I have created multiple list views.I want to assign these views to HR,Finance,Marketing dept,etc.
Can you help me to retrieve the dept from user profile service and assign to the views.And when the user logged in,it allows only the corresponding view to the person to edit.
Thank youHi Aditi, the following links should answer your question:
http://social.technet.microsoft.com/Forums/sharepoint/en-US/8a449a5f-21fd-49a2-bb3c-1912fea79841/switch-views-based-on-a-person-sharepoint-user-groups-in-infopath-2010?forum=sharepointcustomizationprevious
http://sharepoint2010blogsbydebraj.blogspot.com/2011/08/infopath-2010-switching-views-based-on.html
http://www.infopathdev.com/forums/p/22550/78157.aspx
http://sharepoint.stackexchange.com/questions/84363/how-to-hide-sections-of-infopath-form-based-on-group-membership
cameron rautmann -
SharePoint 2013: Update User Profile Properties is giving error
Hello all SharePoint Gurus - I am trying to update the User Profile Properties. The update I am trying is to
Property Mapping for Synchronization. Mapping mobile property of AD to the User Profile Property Mobile Phone.
It is giving error "An Error occurred when updating a property". Check ULS is not showing any error.
The FIM Service, USer Profile Services and Synchronization Services all are in Started mode. Properly synchronizing with AD.
Please throw some light on this.
Regards,
KhushiHi Khushi,
According to your description, my understanding is that you got an error when you make "Mobile Phone" map to "mobile" from AD properties.
I did a test as your description, in my testing, everything worked well.
Please try to stop User Profile Synchronization service and User profile service, then restart them, compare the result.
There are some similar posts about this issue, pease check if they are useful for you:
https://social.technet.microsoft.com/Forums/sharepoint/en-US/32937e1d-830e-4553-bdfc-23d3ee7f6d07/why-mapping-of-user-profile-property-fails
http://sharepoint.stackexchange.com/questions/34634/mapping-user-properties-fails
If this issue still exists, please check Windows Event Viewer to check there is something about this issue:
How to use Windows Event Viewer:
http://blog.credera.com/technology-insights/microsoft-solutions/troubleshooting-sharepoint-errors/
Best Regards,
Wendy
Wendy Li
TechNet Community Support -
How to Get user profile properties in provider -cloud hosted app in sharepoint online - office 365 using REST API?
any idea?Hi,
From your description, my understanding is that you want to get user profile properties in provider-hosted app in SharePoint online using REST API.
Here is sample code for getting user profile properties:
http://www.vrdmn.com/2013/07/sharepoint-2013-get-userprofile.html
Here is a blog below about accessing data from the provider-host apps:
http://dannyjessee.com/blog/index.php/2014/07/accessing-sharepoint-data-from-provider-hosted-apps-use-the-right-context/
Best Regards,
Vincent Han
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Reading User Profile Properties pragmatically in SharePoint 2010 Returns Null Values Although it has values returned from AD
I configured the user profile service application and run Sync and user profiles and its properties returned from Active directory but when I want to read it pragmatically it returns null values.
this is my code...
void runQueryButton_Click(object sender, EventArgs e)
// Get the My Sites site collection, ensuring proper disposal
using (SPSite mySitesCollection = new SPSite("http://sp/my"))
//Get the user profile manager
SPServiceContext context = SPServiceContext.GetContext(mySitesCollection);
UserProfileManager profileManager = new UserProfileManager(context);
UserProfile profile = profileManager.GetUserProfile("Contoso\\user");
foreach (Property prop in profileManager.Properties)
// if (prop.Name == "Department")
resultsLabel.Text += prop.DisplayName + ":" + profile[prop.Name].Value + "<br />"; ;Hi,
Please try with the following code
PrincipalContext principalContext = new PrincipalContext(ContextType.Domain);
SPServiceContext context = SPServiceContext.GetContext(site);
UserProfileManager profileManager = new UserProfileManager(context);
foreach (Property prop in profileManager.Properties)
// if (prop.Name == "Department")
resultsLabel.Text += prop.DisplayName
+ ":" + profile[prop.Name].Value + "<br />"; ;
Thanks,
Vivek
Please vote or mark your question answered, if my reply helps you -
Mapped a custom user profil propertie office 365
Hi,
I created a customer user profil propertie named ="CodeUO" , Type Text.
I have ticked the index and alias box
then I created the property bag for this property.
but when I user the search
https://--------/_api/search/query?querytext='*'&sourceid='B09A7990-05EA-4AF9-81EF-EDFAB16C4E31'&selectproperties='CodeUO,AccountName'
I have this result:
-<d:element m:type="SP.KeyValue">
<d:Key>CodeUO</d:Key>
<d:Value m:null="true"/>
<d:ValueType>Null</d:ValueType>
</d:element>
Best Regards,
NDYou have to perform a new crawl of the user profiles in order to get values in the properties. So you have new user profile properties which are getting corresponding crawled properties called People:PropertyName, and you have mapped these to two managed
properties in the search schema named CodeUO and AccountName..right?
Thanks,
Mikael Svenson - Search Enthusiast
SharePoint MVP/MCT/MCPD - If you find an answer useful, please up-vote it.
http://techmikael.blogspot.com/
Author of Working with FAST Search Server 2010 for SharePoint -
Best way to create a conact list from the user profile properties
We have a customer looking for a phone book utility, starting with a table showing main user information and with some search options. We would like o base it on the user profile properties and not to create an indipendent studion record browser porlet.
What is best way to create a conact list from the user profile properties ?I did something like this using search. It can get messy, so you need to take care with it.
* Identify the properties you want to make accessible to search (ex: name, etc.)
- add them to the user property map
- flag them as searchable
* I broke down and used the native server API. I'd still suggest this approach.
* Write some simple code to do vcard export if you like
(my code is all in vb.net)
I really believe this is the "right" approach, but honestly, this was a bit painful and has been
messy for us given some other business issues. (to my chagrin we have users with 2-letter last
names...)
I have code you're welcome to poke at, but it's more or less slapped together and has various
different search methods commented out so you can see how I tinkered w/ the remote vs. server
API.
If you'd like it mail me at [email protected] and I'll send you a zipped copy w/ a
readme. I hope it may be useful to you as both a starting reference. -
For eg :
I had a user called domain1\user1 whose mysite was created as http://my/personal/user1.
Now this user moves to another domain say domain2\user1.Since mysite is already present no new mysite will be created.
Move-SPUser –Identity "domain1\user1" –NewAlias "domain2\user1"After executing the above query,user is migrated and is able to login to the mysite.But the newsfeed data is not seen.I can see it in the microfeed list but not in the newsfeed page.All other data like documents ,tags,people etc is present
harsh damaniait should move all the profile data alonwith, i would check the ULS logs for any clue.
also make sure following timer jobs ran successfully
User Profile service application name - User Profile to SharePoint Quick Synchronization
User Profile service application name - Feed Cache Repopulation
User Profile service application name - Activity Feed Job
Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog -
Got rid of User Profiles data source in 2013?
We're trying to put together an approval workflow using 2013, but it seems like they got rid of the "User Profiles" data source, so you cant simply select the Manager of the current user. I wanted to add that manager to the Participants of a Task
process, but I kind of hit a brick wall with that.
Is the process overall different in how I would talk to the active directory through the workflow? Or should I just stick to 2010 workflow?Correct, it is no longer there. You're going to have to use the user profile web service. See here:
http://sharepointrocks.wordpress.com/2013/08/22/sharepoint-2013-using-infopath-and-userprofileservice-asmx-with-claims-based-web-applications/
Andy Wessendorf SharePoint Developer II | Rackspace [email protected] -
How to Add a User Control to a SharePoint 2013 Visual Web Part ?
Hi,
1.I have created SharePoint 2013 Farm Solution through VS 2012.
2.Added visual Web part
3.Created a User control (Farm Solution ) and added some Control From tool Box.
4.Drag and drop user control from solution explorer to visual web part.
so its Register tag and with prefix tag user controls automatically added on visual web part source. when i try to build solution it throws Exception:
Exception :The name 'InitializeControl' does not exist in the current context.
Please Provide solution after try/or proper workaround.
Thanks,
SiddheshwarSite name=http://sitename:22222/
Visual Web part:
<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Src="~/_controltemplates/15/SP2013Controls/SPControls.ascx" TagPrefix="uc1" TagName="SPControls" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SPWebpart.ascx.cs" Inherits="SP2013Controls.SPWebpart.SPWebpart" %>
<uc1:SPControls runat="server" id="SPControls" />
User Control Code:
<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SPControls.ascx.cs" Inherits="SP2013Controls.ControlTemplates.SP2013Controls.SPControls" %>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><asp:Button ID="Button1" runat="server" Text="Button" />
Deployement Location:{SharePointRoot}\Template\ControlTemplates\SP2013Controls\
After User controls added on webpart .g.cs file getting blank.
After 1st Build:
'InitializeControl' does not exist in the current context
The file '/_controltemplates/15/SP2013Controls/SPControls.ascx' does not exist.
after 2nd Build Try:
'InitializeControl' does not exist in the current context -
HI,
I am using VS 2012, I have selected the option "sharepoint sequential workflow (Farm solution) option and not the workflow App model.
Earlier in SharePoint 2010, the approver status column can be got from ExtendedProperties["TaskStatus"] and which contained either "#" or "@" as its value.
However, in SharePoint 2013, the ExtendedProperties does not contain the "TaskStatus" key. In the quickwatch, i was able to see the value as "#" associated to some guid key. In the debug mode,i can see the below:
(new System.Collections.Hashtable.HashtableDebugView(TaskPropertiesForManagerAfter.ExtendedProperties)).Items[12]
But I’m not sure how to get to it from the code?
How to retrieve the Task Status using ExtendedProperties in SharePoint 2013?
ThanksHaving problems getting SPD 2013 installed on my laptop because of a trial of O365, but I know in SPD 2010 you could find the BCC fields, etc... in the Advanced properties, it wasn't directly available via the common interface. I know 2013 is very
different from 2010, and if I can get it to install correctly, I will update, but look for an advanced property, or an XML view where you can find the FROM: field.
Maybe you are looking for
-
Lion does not have "Save as." How do I change the name of a Keynote presentation?
How can I change the name of a Keynote presentation in Lion since it does not have "save as'?
-
Images in CS4 are Brighter than LR 2.4
I'm using both CS4 and Lightroom 2.4 on a Mac with an external (calibrated) monitor. Images opened in CS4 are significantly brighter than the same ones in Lightroom. What could cause this? Thanks
-
I've never owned a Nokia before and just got myself a 8800. However, i've been frustrated by not being able to set up the games or applications as a shortcut. I would be grateful if someone could let me know how or if this can be done.
-
RVS4000 WAN PORT set to 1000Mbit
Is there a way to set the WAN Port to 1000Mbit? My Cablemodem supports up to 1000Mbit on the interface but the RVS4000 only runs at 100Mbit WAN Port speed. It would be great to have the same options as for the LAN ports to change sensing also on the
-
Hi, Attached is the client JVM trace containing an error that occurs when i try to modify some of my documents in java mode. The error is triggered exactly when i try to show the header and/or the footer in page mode on a report. As a result the repo