Export User profile configuration

Is it possible to map various user properties in the Dev environment and then export the configuration/mapping and import it to the test and production environment - or is't the hard trivia manual work in each environment? 

Hey JmATK,
Literally its not a tough thing to do... U can pass some JQuery
and fetch all the user Property into a object and then u can work with them with their
internal name. I am pasting code below...
function getUserProperties() {
// Replace the placeholder value with the target user's credentials.
var targetUser = "DOMAIN\\UserName";
alert(targetUser);
// Get the current client context and PeopleManager instance.
var clientContext = new SP.ClientContext.get_current();
var peopleManager = new SP.UserProfiles.PeopleManager(clientContext);
// Get user properties for the target user.
// To get the PersonProperties object for the current user, use the
// getMyProperties method.
personProperties = peopleManager.getPropertiesFor(targetUser);
// Load the PersonProperties object and send the request.
clientContext.load(personProperties);
clientContext.executeQueryAsync(Function.createDelegate(this, this.onRequestSuccess), Function.createDelegate(this, this.onRequestFail));
// This function runs if the executeQueryAsync call succeeds.
function onRequestSuccess() {
// Get a property directly from the PersonProperties object.
var messageText = " \"DisplayName\" property is "
+ personProperties.get_displayName();
// Get a property from the UserProfileProperties property.
messageText += "<br />"
+ personProperties.get_userProfileProperties()['PropertyName'];
alert(messageText);
alert(personProperties.get_userProfileProperties()['PropertyName']);
//$get("results").innerHTML = messageText;
$("#div2").html("<img onmouseover='" + personProperties.get_displayName() + "' src='" + personProperties.get_userProfileProperties()['PropertyName'] + "'/>");
Let me know if you have any Query...
Please Mark as an Answer
live.com

Similar Messages

  • User Profile Pictures not deleting / replacing

    Hello,
    I have been struggling with this issue for a couple of weeks and think I may need some help.  I have a user profile sync application which works fine, it syncs several attributes from AD into SharePoint, it also exports user profile pictures back to
    AD for Exchange and Lync to use, this all works fine.
    I was asked to replace a picture for a user, which I did using the 'Manage User Profiles' page in Central Admin.  I didn't realise there was an issue until I was asked again a week later, it seems the update had not worked.  I tried again, and
    lo and behold the picture managed to revert back to the old one again.
    After a lot of messing around deleting the picture, syncing, adding the new picture, syncing again etc I could not get the new picture to stay, the old one kept coming back. I do not think the issue is related to the sync, but more with SharePoint itself,
    here is a symptom I believe is related:-
    I delete a user's picture from 'Manage User Profiles', the picture is gone and the user's mysite page shows the placeholder pic.
    Looking in the mysites site collection in User%20Photos/Forms/AllItems.aspx the 3 pictures for the user have disappeared.  However if I browse to the url of the picture - User%20Photos/Profile%20Pictures/*username*_SThumb.jpg (or mthumb or lthumb) the
    picture appears in my browser.
    Next if I add a new picture for the same user through central admin, I then see the new picture in their mysite, I can also see 3 thumbnails of the user's photo under the mysites site collection in User%20Photos/Forms/AllItems.aspx
    So far so good, however, if I browse to the url of the picture (including the filename as above) then I am shown the old picture :S
    So it appears that the pictures in User%20Photos/Profile%20Pictures/_w and User%20Photos/Profile%20Pictures/_t are updating with the new picture, but the pictures in User%20Photos/Profile%20Pictures/ do not get updated, or even deleted properly when they
    are removed.
    Hope somebody can shed some light on this as it's really annoying me now! Thanks :)

    Hi,
    According to your post, my understanding is that the replacing picture not work properly in MySite.
    I tried to reproduce the issue in my environment(SharePoint server 2013+SP1), it works without any issue.
    Did the issue occur for all the users?
    To narrow down whether the issue is related to the User Profile service, you can use other accounts to check whether it works.
    If that is the case, you can recreate the user profile service application to check whether it works.
    If your environment does not install any updates, you can install SP1 or latest update to check whether it works.
    You can also check the event log and ULS log to see if anything unexpected occurred.
    To check event log, click the Start button and type “Event Viewer” in the Search box.
    For SharePoint 2013, by default, ULS log is at
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • User Profiles Synch Service starting failes after "ILM Configuration: Starting services"

    Hello guys.
    I tried to configure user profiles synchronization and it could not be started without any problems as expected :)
    This time I got the following error in logs:
    02.05.2013 10:54:03.34 OWSTIMER.EXE (0x17DC)
    0x183C SharePoint Portal Server
    User Profiles 9q1k
    Medium ILM Configuration: Starting services.
    0160471f-15fc-4d97-8227-05b86f4d0fc7
    02.05.2013 10:54:33.52 OWSTIMER.EXE (0x17DC)
    0x183C SharePoint Portal Server
    User Profiles 9q15
    High UserProfileApplication.SynchronizeMIIS: Failed to configure ILM, will attempt during next rerun. Exception: System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size
    of the argument list.     at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)     at System.String.Format(IFormatProvider provider, String format, Object[] args)     at Microsoft.Office.Server.Administration.ProfileSynchronizationServiceInstance.IsStarted(ServiceController
    controller)     at Microsoft.Office.Server.Administration.ProfileSynchronizationServiceInstance.WaitUntilStarted()     at Microsoft.Office.Server.Administration.UserProfileApplication.SetupSynchronizationService(ProfileSynchronizationServiceInstance
    profileSyncInstance). 0160471f-15fc-4d97-8227-05b86f4d0fc7
    02.05.2013 10:54:33.52 OWSTIMER.EXE (0x17DC)
    0x183C SharePoint Portal Server
    User Profiles 9i1u
    Medium UserProfileApplication.SynchronizeMIIS: End setup for 'UserProfilesService'.
    0160471f-15fc-4d97-8227-05b86f4d0fc7
    So, what I have and what I've done:.
    1) I have a test 2-servers farm installation (Database server + WFE/Application server); SQL Server 2008 R2 SP2, SHP 2010 SP1 + October 2012 CU; There are no any service applications except default ones(Security Token Service and Application Discovery
    and Load Balancer Service Application) as well as there are  no any services started except default :) 
    2) I created a site collection and manage path for MySites, created a new UPA and its proxy.
    That's all. Now, if I try starting User Profiles Synchronization Service, it stucks on "starting" for about 10 mins and I see the error above in ULS. Hope you can somehow help me.
    By the way, I don't want a both sides synchronization this time, I just need to check some stuff with People Search. Will "Read" rights for Managed Account in AD be enough to export profiles from AD? (I mean if I select my farm account as a synchronization
    account, will it work?)
    Thank's in advance!
    Anton.
    UPDATED
    The problem probably was due to the lack of internet access. As Raymond
    Diack said:
    "the farm account needs internet access to do a CRL check to these sites:
    crl.microsoft.com
    ctldl.windowsupdate.com
    ctldl.windowsupdate.nsatc.net
    www.update.microsoft.com.nsatc.net "

    Sure, here is the stack near the error without any filters: 
    11:13:11.88 OWSTIMER.EXE (0x0AA8) 0x0EA8 SharePoint Portal Server User Profiles 9q1j Medium ILM Configuration: Opening firewall ports. 589d9196-6647-4432-9ab0-a389871310b7
    11:13:12.13 OWSTIMER.EXE (0x0AA8) 0x0EA8 SharePoint Portal Server User Profiles 9q1k Medium ILM Configuration: Starting services. 589d9196-6647-4432-9ab0-a389871310b7
    11:13:12.36 w3wp.exe (0x1364) 0x0CA0 SharePoint Foundation Topology e5mc Medium WcfSendRequest: RemoteAddress: 'http://hq-tcc-app-02:32843/900539dde24c4bc9a0db06a9f9fe6ebf/MetadataWebService.svc' Channel: 'Microsoft.SharePoint.Taxonomy.IMetadataWebServiceApplication' Action: 'http://schemas.microsoft.com/sharepoint/taxonomy/soap/IDataAccessReadOnly/GetChanges' MessageId: 'urn:uuid:80a1f95b-37a3-45f1-89a6-f33de57b678a'
    11:13:12.36 w3wp.exe (0x0788) 0x0D2C SharePoint Foundation Topology e5mb Medium WcfReceiveRequest: LocalAddress: 'http://hq-tcc-app-02.corp.fsk-ees.local:32843/900539dde24c4bc9a0db06a9f9fe6ebf/MetadataWebService.svc' Channel: 'System.ServiceModel.Channels.ServiceChannel' Action: 'http://schemas.microsoft.com/sharepoint/taxonomy/soap/IDataAccessReadOnly/GetChanges' MessageId: 'urn:uuid:80a1f95b-37a3-45f1-89a6-f33de57b678a' 75b52d1d-0e9e-45a6-8122-c578bc8aeaf7
    11:13:12.36 w3wp.exe (0x0788) 0x0D2C SharePoint Foundation Monitoring nasq Medium Entering monitored scope (ExecuteWcfServerOperation) 75b52d1d-0e9e-45a6-8122-c578bc8aeaf7
    11:13:12.36 w3wp.exe (0x0788) 0x0D2C SharePoint Server Taxonomy fuc5 Medium MetadataWebServiceApplication.GetChanges called on 'Служба управляемых метаданных' starting. 75b52d1d-0e9e-45a6-8122-c578bc8aeaf7
    11:13:12.36 w3wp.exe (0x0788) 0x0D2C SharePoint Server Taxonomy fuc6 Medium MetadataWebServiceApplication.GetChanges called on 'Служба управляемых метаданных' completed. 75b52d1d-0e9e-45a6-8122-c578bc8aeaf7
    11:13:12.38 w3wp.exe (0x0788) 0x0D2C SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (ExecuteWcfServerOperation). Время выполнения=4,01622273221876 75b52d1d-0e9e-45a6-8122-c578bc8aeaf7
    11:13:12.75 OWSTIMER.EXE (0x0AA8) 0x16F0 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (Timer Job job-timer-locks) ea70e10e-4455-47ea-a3fd-e7cb0f0a9ce4
    11:13:12.75 OWSTIMER.EXE (0x0AA8) 0x16F0 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (Timer Job job-timer-locks). Время выполнения=4,16512433842849 ea70e10e-4455-47ea-a3fd-e7cb0f0a9ce4
    11:13:22.52 w3wp.exe (0x1364) 0x0CA0 SharePoint Foundation Topology e5mc Medium WcfSendRequest: RemoteAddress: 'http://hq-tcc-app-02:32843/900539dde24c4bc9a0db06a9f9fe6ebf/MetadataWebService.svc' Channel: 'Microsoft.SharePoint.Taxonomy.IMetadataWebServiceApplication' Action: 'http://schemas.microsoft.com/sharepoint/taxonomy/soap/IDataAccessReadOnly/GetChanges' MessageId: 'urn:uuid:5b799d56-3784-48ff-beaf-6fb6bfeade78'
    11:13:22.52 w3wp.exe (0x0788) 0x1544 SharePoint Foundation Topology e5mb Medium WcfReceiveRequest: LocalAddress: 'http://hq-tcc-app-02.corp.fsk-ees.local:32843/900539dde24c4bc9a0db06a9f9fe6ebf/MetadataWebService.svc' Channel: 'System.ServiceModel.Channels.ServiceChannel' Action: 'http://schemas.microsoft.com/sharepoint/taxonomy/soap/IDataAccessReadOnly/GetChanges' MessageId: 'urn:uuid:5b799d56-3784-48ff-beaf-6fb6bfeade78' 941bbfb5-84aa-411e-b310-74830120b860
    11:13:22.52 w3wp.exe (0x0788) 0x1544 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (ExecuteWcfServerOperation) 941bbfb5-84aa-411e-b310-74830120b860
    11:13:22.52 w3wp.exe (0x0788) 0x1544 SharePoint Server Taxonomy fuc5 Medium MetadataWebServiceApplication.GetChanges called on 'Служба управляемых метаданных' starting. 941bbfb5-84aa-411e-b310-74830120b860
    11:13:22.52 w3wp.exe (0x0788) 0x1544 SharePoint Server Taxonomy fuc6 Medium MetadataWebServiceApplication.GetChanges called on 'Служба управляемых метаданных' completed. 941bbfb5-84aa-411e-b310-74830120b860
    11:13:22.52 w3wp.exe (0x0788) 0x1544 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (ExecuteWcfServerOperation). Время выполнения=2,92432418086656 941bbfb5-84aa-411e-b310-74830120b860
    11:13:26.78 OWSTIMER.EXE (0x0AA8) 0x0894 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (Timer Job SchedulingUnpublish) 6044b3fe-8ca7-4f76-81b0-ea55e6795d5b
    11:13:26.78 OWSTIMER.EXE (0x0AA8) 0x0894 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (Timer Job SchedulingUnpublish). Время выполнения=2,56094000773841 6044b3fe-8ca7-4f76-81b0-ea55e6795d5b
    11:13:32.66 w3wp.exe (0x1364) 0x0CA0 SharePoint Foundation Topology e5mc Medium WcfSendRequest: RemoteAddress: 'http://hq-tcc-app-02:32843/900539dde24c4bc9a0db06a9f9fe6ebf/MetadataWebService.svc' Channel: 'Microsoft.SharePoint.Taxonomy.IMetadataWebServiceApplication' Action: 'http://schemas.microsoft.com/sharepoint/taxonomy/soap/IDataAccessReadOnly/GetChanges' MessageId: 'urn:uuid:f5648c05-71d7-443c-b12d-946eb36bcb3f'
    11:13:32.66 w3wp.exe (0x0788) 0x1544 SharePoint Foundation Topology e5mb Medium WcfReceiveRequest: LocalAddress: 'http://hq-tcc-app-02.corp.fsk-ees.local:32843/900539dde24c4bc9a0db06a9f9fe6ebf/MetadataWebService.svc' Channel: 'System.ServiceModel.Channels.ServiceChannel' Action: 'http://schemas.microsoft.com/sharepoint/taxonomy/soap/IDataAccessReadOnly/GetChanges' MessageId: 'urn:uuid:f5648c05-71d7-443c-b12d-946eb36bcb3f' 1af7e327-bb71-49f8-a598-2e85ae5ce2a6
    11:13:32.66 w3wp.exe (0x0788) 0x1544 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (ExecuteWcfServerOperation) 1af7e327-bb71-49f8-a598-2e85ae5ce2a6
    11:13:32.66 w3wp.exe (0x0788) 0x1544 SharePoint Server Taxonomy fuc5 Medium MetadataWebServiceApplication.GetChanges called on 'Служба управляемых метаданных' starting. 1af7e327-bb71-49f8-a598-2e85ae5ce2a6
    11:13:32.71 w3wp.exe (0x0788) 0x1544 SharePoint Server Taxonomy fuc6 Medium MetadataWebServiceApplication.GetChanges called on 'Служба управляемых метаданных' completed. 1af7e327-bb71-49f8-a598-2e85ae5ce2a6
    11:13:32.72 w3wp.exe (0x0788) 0x1544 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (ExecuteWcfServerOperation). Время выполнения=65,7127512016192 1af7e327-bb71-49f8-a598-2e85ae5ce2a6
    11:13:39.79 OWSTIMER.EXE (0x0AA8) 0x0500 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (Timer Job SchedulingApproval) 69e34469-a502-4257-80f4-d8fb990f2bf7
    11:13:39.80 OWSTIMER.EXE (0x0AA8) 0x0500 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (Timer Job SchedulingApproval). Время выполнения=11,6191443325898 69e34469-a502-4257-80f4-d8fb990f2bf7
    11:13:40.33 w3wp.exe (0x1364) 0x0E98 SharePoint Portal Server Runtime 8gp7 Medium Topology cache updated. (AppDomain: /LM/W3SVC/961767364/ROOT-1-130050376913614507)
    11:13:42.88 w3wp.exe (0x1364) 0x0CA0 SharePoint Foundation Topology e5mc Medium WcfSendRequest: RemoteAddress: 'http://hq-tcc-app-02:32843/900539dde24c4bc9a0db06a9f9fe6ebf/MetadataWebService.svc' Channel: 'Microsoft.SharePoint.Taxonomy.IMetadataWebServiceApplication' Action: 'http://schemas.microsoft.com/sharepoint/taxonomy/soap/IDataAccessReadOnly/GetChanges' MessageId: 'urn:uuid:23bdd02e-0716-4697-b55d-55862694ebe1'
    11:13:42.89 w3wp.exe (0x0788) 0x0D2C SharePoint Foundation Topology e5mb Medium WcfReceiveRequest: LocalAddress: 'http://hq-tcc-app-02.corp.fsk-ees.local:32843/900539dde24c4bc9a0db06a9f9fe6ebf/MetadataWebService.svc' Channel: 'System.ServiceModel.Channels.ServiceChannel' Action: 'http://schemas.microsoft.com/sharepoint/taxonomy/soap/IDataAccessReadOnly/GetChanges' MessageId: 'urn:uuid:23bdd02e-0716-4697-b55d-55862694ebe1' c7b0b8bc-dad4-4863-98e0-92838dafa933
    11:13:42.89 w3wp.exe (0x0788) 0x0D2C SharePoint Foundation Monitoring nasq Medium Entering monitored scope (ExecuteWcfServerOperation) c7b0b8bc-dad4-4863-98e0-92838dafa933
    11:13:42.89 w3wp.exe (0x0788) 0x0D2C SharePoint Server Taxonomy fuc5 Medium MetadataWebServiceApplication.GetChanges called on 'Служба управляемых метаданных' starting. c7b0b8bc-dad4-4863-98e0-92838dafa933
    11:13:42.89 w3wp.exe (0x0788) 0x0D2C SharePoint Server Taxonomy fuc6 Medium MetadataWebServiceApplication.GetChanges called on 'Служба управляемых метаданных' completed. c7b0b8bc-dad4-4863-98e0-92838dafa933
    11:13:42.89 w3wp.exe (0x0788) 0x0D2C SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (ExecuteWcfServerOperation). Время выполнения=2,88158131829604 c7b0b8bc-dad4-4863-98e0-92838dafa933
    11:13:42.89 OWSTIMER.EXE (0x0AA8) 0x0EA8 SharePoint Portal Server User Profiles 9q15 High UserProfileApplication.SynchronizeMIIS: Failed to configure ILM, will attempt during next rerun. Exception: System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.     at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)     at System.String.Format(IFormatProvider provider, String format, Object[] args)     at Microsoft.Office.Server.Administration.ProfileSynchronizationServiceInstance.IsStarted(ServiceController controller)     at Microsoft.Office.Server.Administration.ProfileSynchronizationServiceInstance.WaitUntilStarted()     at Microsoft.Office.Server.Administration.UserProfileApplication.SetupSynchronizationService(ProfileSynchronizationServiceInstance profileSyncInstance). 589d9196-6647-4432-9ab0-a389871310b7
    11:13:42.89 OWSTIMER.EXE (0x0AA8) 0x0EA8 SharePoint Portal Server User Profiles 9i1u Medium UserProfileApplication.SynchronizeMIIS: End setup for 'UPS'. 589d9196-6647-4432-9ab0-a389871310b7
    11:13:42.89 OWSTIMER.EXE (0x0AA8) 0x0EA8 SharePoint Foundation Topology 8xqz Medium Updating SPPersistedObject ProfileSynchronizationSetupJob Name=ProfileSynchronizationSetupJob. Version: 15232 Ensure: False, HashCode: 11248478, Id: c8e4ed56-ab72-4b99-8532-d282d3f26896, Stack:    at Microsoft.SharePoint.Administration.SPPersistedObject.BaseUpdate()     at Microsoft.SharePoint.Administration.SPJobDefinition.Update()     at Microsoft.Office.Server.Administration.ProfileSynchronizationSetupJob.Execute(SPJobState state)     at Microsoft.SharePoint.Administration.SPTimerJobInvokeInternal.Invoke(SPJobDefinition jd, Guid targetInstanceId, Boolean isTimerService, Int32& result)     at Microsoft.SharePoint.Administration.SPTimerJobInvoke.Invoke(TimerJobExecuteData& data, Int32& result) 589d9196-6647-4432-9ab0-a389871310b7
    11:13:42.92 OWSTIMER.EXE (0x0AA8) 0x0EA8 SharePoint Foundation Monitoring b4ly High Leaving Monitored Scope (Timer Job ProfileSynchronizationSetupJob). Время выполнения=161321,353202712 589d9196-6647-4432-9ab0-a389871310b7
    11:13:42.96 OWSTIMER.EXE (0x0AA8) 0x0EA8 SharePoint Foundation Topology 8dyx High Deleting the SPPersistedObject, ProfileSynchronizationSetupJob Name=ProfileSynchronizationSetupJob. 589d9196-6647-4432-9ab0-a389871310b7

  • Configuring group policy for user profiles in Windows Server 2012 R2 Domain

    Requesting some experts advise on configuring group policy for user profiles.
    We will be building new Windows Server 2012 R2 Domain Controllers (Domain of 400 users).
    The settings which I am concerned:
    1. Folder Redirection: Desktop, Documents, Favorites.
    2. Quota for Folder Redirection - 1 GB per user.
    3. Map a networked drive - 1 GB per user.
    4. Roaming profile - (Will ignore if it does not suit our requirement). 
    The question is how outlook profile will be retained / automatically moved if the users move from once computer to other?
    FYI, E-mails hosted on MS Office365 and OST file size of few users more than 25GB. So, in case the user moves from one computer to other, the entire mailbox will be downloaded via internet. This consumes high bandwidth if more than 3-4 users shift per day.
    Thanks a lot for your valuable time and efforts.

    Hi,
    >>The question is how outlook profile will be retained / automatically moved if the users move from once computer to other?
    This depends on where our outlook data files are stored. If these data files are stored under
    drive:\Users\<username>\AppData\Local, then these files can’t be redirected, for folder redirection can’t redirect appdata local or locallow.
    However, regarding your question, we can refer to the following thread to find the solution.
    Roam outlook profiles without roaming profiles
    http://social.technet.microsoft.com/Forums/office/en-US/3908b8e0-8f44-4a34-8eb5-5a024df3463e/roam-outlook-profiles-without-roaming-profiles
    In addition, regarding how to configure folder redirection, the following article can be referred to for more information.
    Configuring Folder Redirection
    http://technet.microsoft.com/library/cc786749.aspx
    Hope it helps.
    Best regards,
    Frank Shen

  • Аdding department export data from a survey list from user profile services in Sharepoint 2013.

    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

  • Configure oracle varaibe in user profile (Solaris os)

    Plesae need help , i need to set varibles in user profile
    ORACLE_BASE=/export/home/oracle; export ORACLE_BASE
    ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
    ORACLE_SID=orcl; export ORACLE_SID
    i used solaris os

    Just issue
    vi .profile
    and put the block you posted in .profile.
    Kindly keep Unix questions out of this forum.
    Sybrand Bakker
    Senior Oracle DBA

  • Changing the label of attributes configured on User Profile by SAP HRMS connector

    Is it possible to change the label of attributes configured on User Profile by SAP HRMS connector during the installation?

    You can modify the connector xml before you install the connector or try this: http://docs.oracle.com/cd/E21764_01/doc.1111/e14309/uicust.htm#BABDEGFE
    -Bikash

  • Order of User Profile update

    Hi
    I'm in the middle of configuring UPS and would appreciate some advise on the order of how the end user interacts with their profile and how updating of user profile and AD should work.
    1. users start life from AD, only a handful of fields get added.
    1a. UPS updates SharePoint profile datatabase.
    2. every user needs an image, users are allowed to edit certain aspects of their profile (manager). Should this be user profile in SharePoint?
    2a. SharePoint exports to AD new information ? (i.e.image)
    3. Ideally, I would want outlook to pick up the images from somewhere.
    Is the above order correct, Im not keen on updating AD as in step 2a. Is this needed?
    Thanks

    Updating AD is needed if you want to push attributes from SharePoint to Active Directory (like a photo). What version of Exchange do you have?
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • User Profiles - MVP Advice Needed

    Hi
    I'm looking for some guidance around how to/best practice to complete full-cycle synchronization of user profile properties.
    Oracle HR is the source of truth for people related data. We run a synchronization to Active Directory of the people data from Oracle every 3 hours.
    SharePoint imports the user profile properties from the AD attributes using the User Profile Synchronization service (not AD Import), including some usage of the extensionAttributeN. User profiles properties are setup to use both OOTB and custom
    properties.
    It is now a requirement to allow SharePoint users to edit/manage a number of their profile properties through the profile edit feature in My Sites along with SharePoint only profile properties. The edited properties would be both OOTB SharePoint and some
    custom properties The edited properties that originated in Oracle would need to be synchronized back to Oracle in some manner. 
    So my question is, what options do I have? We're trying to force configurable solutions where possible over custom coding, though it's highly unlikely this is configurable, though I honestly do not know.
    All the back end processes outside of SharePoint for persisting data into Oracle are catered for via WCF, it's the how and what's the best practice at the SharePoint end got me stumped. A queue of some description - database preferably maybe.
    How would you approach this requirement?
    I'd appreciate any advice or pointers you can give me.
    Kind regards,
    Lee

    Hi Pavel
    I greatly appreciate your guidance and taking the time to respond.
    I do have an understanding of what is proposed.
    As all properties are imported from AD, I cannot update these to be used to export to Oracle any changes the user makes. I can add new properties specific for allowing the updates to be persisted to Oracle, these would not be displayed except in edit profile.
    With this scenario, there is an obvious disconnect between the imported and exported property values and is really just a form for updating Oracle, blank for initial load and holding the updated values if previous used. I was hoping the properties for exporting
    could be populated with the values of the corresponding imported properties when loading in the edit profile, otherwise null values or incorrect values could be persisted when not expected, though a null/empty value would be valid if a user wanted to clear
    a specific property - remove a phone number for example.
    Do you have any thoughts on how to handle this disconnect?
    Kind regards,
    Lee

  • Outlook clients unable to connect to Exchange / Windows user profile

    Exchange 2010
    Outlook 2010/2013
    I've seen a dozen or so computers in the last few weeks with this problem. The user suddenly cannot connect to the Exchange server in Outlook. (Sorry, I don't have specific error messages for this part.)
    If I try a repair on the Email account or try to create a new Mail profile, I get this error:
    "The action cannot be completed. The connection to Microsoft Exchange is unavailable. Outlook must be online or connected to complete this action."
    I have verified all Exchange and mail security settings. Outlook configuration is not the problem.
    I tried deleting %appdata%\microsoft\outlook and %localappdata%\microsoft\outlook.
    I tried a repair on Microsoft Office.
    I tried creating a new Mail profile for a different email account.
    The only thing that has fixed this problem is a completely new Windows user profile, which tells me there is something else broken in the user profile. Does anyone have any idea what it might be?
    Blog /
    Twitter

    Hi,
    Please try to access Exchange via OWA.
    This issue may occur when the HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders registry key does not contain all of the required data. Specifically, these problems occur if the AppData string value is missing from this
    registry key.
    To resolve this issue, import the User Shell Folders registry key from a working Windows User Profile.
    Steps to perform on a working computer
    Start Registry Editor. Click Start , type regedit in the Search programs and files box, and then press Enter.
    Locate and then select the following registry subkey: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
    On the File menu, click Export.
    Specify the name of the .reg file and then click Save.
    Copy the .reg file to the computer exibiting this problem.
    Close Registry Editor.
    Steps to perform on the computer displaying the above error(s)
    Start Registry Editor.
    On the File menu click Import.
    Locate and select the .reg file exported from the working computer.
    Click Open.
    Close Registry Editor.
    Best Regards.

  • Use one profile for all user profiles in Server 2012 R2

    Hi
    I am setting up an Windows Server 2012 R2 Template on VMware. 
    I will do som changes with the local admin user, and want all user that will log in to servers made from this Template, get the user profile I have set up for the admin account.
    How to I do that?
    Regards
    StigKSand

    the way I used to do this was to create a new profile the way I wanted with any shortcuts applications etc installed. then I would create another user account on the PC and make it an admin.
    reboot the pc to ensure it hasn't got the pre-configured profile loaded and login with your newly created admin account.
    then right click This PC in windows explorer and select properties, then select advanced system settings, and select user profiles on the advanced tab. You can then select the profile you made all the configuration to, and click copy and then select default
    profile.
    this should then mean any new users who login get this default profile on this server.
    hopefully that is what you were referring to.
    Regards,
    Denis Cooper
    MCITP EA - MCT
    Help keep the forums tidy, if this has helped please mark it as an answer
    My Blog
    LinkedIn:

  • Unable to start User Profile Sync Service

    Hi,
    I am currently facing some issues with starting the User Profile Sync Service on my SP2013 farm.. I was wondering if someone could help me out a bit.
    I have successfully installed the SP2013 farm on a environment that has access to our AD etc. and I have also
    restored the database from SP2007 and converted it to Claims authentication etc. The one thing I can’t get to work is to enable the User Profile Sync Service on the server. I have checked quite a bit of TechNet blogs and other sites and tried almost everything
    suggested but it still fails. I’ve also recreated the farm from scratch yesterday again but no luck still
    L.
    The below is what I have done:
    Farm Admin account – spadmin2013 is local admin on all SP Farm servers (2 WFE and 2 APP Servers) and has log on locally rights as well on security policy. On the SQL DB it has dbo permissions on the Sync, Profile and Social DB’s.
    Farm Service account – spservice-s is a managed farm account that is used to run the various services of the farm (used during the config wizard part).
    From within the Admin Control Panel I have verified the managed accounts and it is indeed spadmin2013 which owns the User Profile Sync Service (not the application itself). When I try to start the service it tries to do that for 5-10 minutes and then fails
    and goes back to stop and I do not see any error. I have created a custom service application with new database that runs on spadmin2013/spfarm/ldap accounts etc. I can see from the Windows services – FIM and FIMSync service try to start using the spadmin2013
    and then go back to disabled. I have also tried giving the spadmin2013 rights to replicate the AD as few blogs suggested that. I am not sure where this is going wrong or what is missing. I had successfully got this to work and still can get it to work on my
    first SP2013 server which is a standalone – running SQL, SP app and WFE on the same box.
    In fact I also tried to activate this service first before I joined my 3 other servers to the farm and had no luck. I am kinda lost here as to what is going on! 

    Right. i ran a new log as suggested. I have also cleared the config cache and created a Powershell profile as suggested in this link - http://blogs.msdn.com/b/bryanbolling/archive/2014/01/02/unable-to-start-user-profile-synchronization-service.aspx
    I checked the ULS Logs and i can see the below error -
    ILM Configuration: Validating account.
    ILM Configuration: Validating the system groups
    ILM Configuration: Setting up WMI
    ILM Configuration: Setting required permissions
    ILM Configuration: Create install config file
    ILM Configuration: Update source project
    ILM Configuration: Changing service account credentials
    ILM Configuration: Setting policy for service account
    Updating SPPersistedObject UserProfileApplication Name=User Profile Sync Service. Version: 63903 Ensure: False, HashCode: 55647834, Id: ef1ec55c-aa15-4cb7-a9fe-498382a88b4e, Stack:
    at Microsoft.Office.Server.Administration.UserProfileApplication.Update()
    at Microsoft.Office.Server.Administration.UserProfileApplication.SetupSynchronizationService(ProfileSynchronizationServiceInstance profileSyncInstance)
    at Microsoft.Office.Server.Administration.ProfileSynchronizationSetupJob.Execute(SPJobState state)
    at Microsoft.SharePoint.Administration.SPTimerJobInvokeInternal.Invoke(SPJobDefinition jd, Guid targetInstanceId, Boolean isTimerService, Int32& result)
    at Microsoft.SharePoint.Administration.SPTimerJobInvoke.Invoke(TimerJobExecuteData& data, Int32& result)
    SQL connection time: 131.92704 for Data Source=SPSQLAGL;Initial Catalog="Sync DB";Integrated Security=True;Enlist=False;Pooling=True;Min Pool Size=0;Max Pool Size=100;Connect Timeout=15;Application Name="SharePoint[OWSTIMER][1][Sync DB]"
    ILM Configuration: Configuring database
    ILM Configuration: Error 'ERR_CONFIG_DB'
    UserProfileApplication.SynchronizeMIIS: Failed to configure MIIS post database, will attempt during next rerun. Exception: System.Configuration.ConfigurationErrorsException: ERR_CONFIG_DB
    at Microsoft.Office.Server.UserProfiles.Synchronization.ILMPostSetupConfiguration.ValidateConfigurationResult(UInt32 result)
    at Microsoft.Office.Server.UserProfiles.Synchronization.ILMPostSetupConfiguration.ConfigureMiisStage2()
    at Microsoft.Office.Server.Administration.UserProfileApplication.SetupSynchronizationService(ProfileSynchronizationServiceInstance profileSyncInstance).
    UserProfileApplication.SynchronizeMIIS: End setup for 'User Profile Sync Service'.
    Updating SPPersistedObject ProfileSynchronizationSetupJob Name=ProfileSynchronizationSetupJob. Version: 63899 Ensure: False, HashCode: 36296732, Id: 7aeb377f-8bd1-453d-b6be-6a373eaf350d, Stack:
    at Microsoft.SharePoint.Administration.SPJobDefinition.Update()
    at Microsoft.Office.Server.Administration.ProfileSynchronizationSetupJob.Execute(SPJobState state)
    at Microsoft.SharePoint.Administration.SPTimerJobInvokeInternal.Invoke(SPJobDefinition jd, Guid targetInstanceId, Boolean isTimerService, Int32& result)
    at Microsoft.SharePoint.Administration.SPTimerJobInvoke.Invoke(TimerJobExecuteData& data, Int32& result)
    Leaving Monitored Scope (Timer Job ProfileSynchronizationSetupJob). Execution Time=6041.65717333333
    Name=Timer Job User Profile Sync Service_ProfileSynchronizationJob
    Updating SPPersistedObject ProfileSynchronizationSetupJob Name=ProfileSynchronizationSetupJob. Version: -1 Ensure: False, HashCode: 13918585, Id: 21e01df1-8772-487d-bd56-f699b3912bda, Stack:
    at Microsoft.SharePoint.Administration.SPJobDefinition.Update()
    at Microsoft.Office.Server.Administration.UserProfileApplication.StartSynchronizationServiceSetupTimer(String strSyncMachineAddress)
    at Microsoft.Office.Server.Administration.UserProfileApplication.SynchronizeMIIS()
    at Microsoft.Office.Server.Administration.ILMProfileSynchronizationJob.Execute()
    at Microsoft.Office.Server.Administration.UserProfileApplicationJob.Execute(SPJobState jobState)
    at Microsoft.SharePoint.Administration.SPTimerJobInvokeInternal.Invoke(SPJobDefinition jd, Guid targetInstanceId, Boolean isTimerService, Int32& result)
    at Microsoft.SharePoint.Administration.SPTimerJobInvoke.Invoke(TimerJobExecuteData& data, Int32& result)
    Updating SPPersistedObject ProfileSynchronizationSetupJob Name=ProfileSynchronizationSetupJob. Version: 63913 Ensure: False, HashCode: 13918585, Id: 21e01df1-8772-487d-bd56-f699b3912bda, Stack:
    at Microsoft.SharePoint.Administration.SPJobDefinition.Update()
    at Microsoft.Office.Server.Administration.UserProfileApplication.StartSynchronizationServiceSetupTimer(String strSyncMachineAddress)
    at Microsoft.Office.Server.Administration.UserProfileApplication.SynchronizeMIIS()
    at Microsoft.Office.Server.Administration.ILMProfileSynchronizationJob.Execute()
    at Microsoft.Office.Server.Administration.UserProfileApplicationJob.Execute(SPJobState jobState)
    at Microsoft.SharePoint.Administration.SPTimerJobInvokeInternal.Invoke(SPJobDefinition jd, Guid targetInstanceId, Boolean isTimerService, Int32& result)
    at Microsoft.SharePoint.Administration.SPTimerJobInvoke.Invoke(TimerJobExecuteData& data, Int32& result)
    I have verified the spadmin2013 does have dbo permissions and also is part of security & sysadmin in sql server. I run SQL 2012 with SP1

  • Claims Based Authentication and Editing User Profiles

    Hi All,
    I have an interesting issue where I have a SharePoint Farm setup with both the intranet and mysites web applications setup using Claims Based Authentication. While everything seems to work fine, you are able to search for users, view properties and users
    can change their own profile properties. However when you configure a profile administration account (an account with the "manage user profiles" permission on the User Profile Service Application) and you attempt to use that account to edit
    another users profile you get hit with a generic error page. 
    Delving deeper you get the following errors:
    ULS:
    Date    Process    Thread Id    Area    Category    Event Id    Level    Correlation    Message
    5/7/2013 00:31:44:64    App Pool: MySites    0x1DC8    SharePoint Foundation    Logging Correlation Data    xmnv    Medium    4001199c-6bd8-c03d-920f-55177fbff00c  
     Name=Request (GET:http://mysite.DOMAIN.loc:80/_layouts/15/EditProfile.aspx?UserSettingsProvider=234bf0ed%2D70db%2D4158%2Da332%2D4dfd683b4148&ReturnUrl=http%3A%2F%2Fmysite%2EDOMAIN%2Eloc%2Fperson%2Easpx%3Faccountname%3DDOMAIN%255CAUSER&accountname=DOMAIN%5CAUSER)
    5/7/2013 00:31:44:66    App Pool: MySites    0x1DC8    SharePoint Foundation    Authentication Authorization    agb9s    Medium    4001199c-6bd8-c03d-920f-55177fbff00c  
     Non-OAuth request. IsAuthenticated=True, UserIdentityName=0#.w|DOMAIN\sp_config, ClaimsCount=24
    5/7/2013 00:31:44:66    App Pool: MySites    0x1DC8    SharePoint Foundation    Logging Correlation Data    xmnv    Medium    4001199c-6bd8-c03d-920f-55177fbff00c  
     Site=/
    5/7/2013 00:31:44:69    App Pool: MySites    0x1DC8    SharePoint Foundation    Files    00000    High    4001199c-6bd8-c03d-920f-55177fbff00c  
     UserAgent not available, file operations may not be optimized.
    at Microsoft.SharePoint.SPFileStreamManager.CreateCobaltStreamContainer(SPFileStreamStore spfs, ILockBytes ilb, Boolean copyOnFirstWrite, Boolean disposeIlb)  
    at Microsoft.SharePoint.SPFileStreamManager.SetInputLockBytes(SPFileInfo& fileInfo, SqlSession session, PrefetchResult prefetchResult)  
    at Microsoft.SharePoint.CoordinatedStreamBuffer.SPCoordinatedStreamBufferFactory.CreateFromDocumentRowset(Guid databaseId, SqlSession session, SPFileStreamManager spfstm, Object[] metadataRow, SPRowset contentRowset, SPDocumentBindRequest& dbreq, SPDocumentBindResults&
    dbres)  
    at Microsoft.SharePoint.SPSqlClient.GetDocumentContentRow(Int32 rowOrd, Object ospFileStmMgr, SPDocumentBindRequest& dbreq, SPDocumentBindResults& dbres)  
    at Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Int32 iRequestVersion, Byte bMainFileRequest, Boolean& pbCanCustomizePages,
    Boolean& pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, Boolean& pbIsWebWelcomePage, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion, String&
    pbstrTimeLastModified, String& pbstrContent, UInt32& pdwPartCount, Object& pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String& pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64&
    pllListFlags, Boolean& pbAccessDenied, Guid& pgDocid, Byte& piLevel, UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32& pdwNumBuildDependencies, Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder,
    Guid& pgDocScopeId)  
    at Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Int32 iRequestVersion, Byte bMainFileRequest, Boolean& pbCanCustomizePages,
    Boolean& pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, Boolean& pbIsWebWelcomePage, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion, String&
    pbstrTimeLastModified, String& pbstrContent, UInt32& pdwPartCount, Object& pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String& pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64&
    pllListFlags, Boolean& pbAccessDenied, Guid& pgDocid, Byte& piLevel, UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32& pdwNumBuildDependencies, Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder,
    Guid& pgDocScopeId)  
    at Microsoft.SharePoint.Library.SPRequest.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Int32 iRequestVersion, Byte bMainFileRequest, Boolean& pbCanCustomizePages, Boolean&
    pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, Boolean& pbIsWebWelcomePage, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified,
    String& pbstrContent, UInt32& pdwPartCount, Object& pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String& pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64& pllListFlags, Boolean&
    pbAccessDenied, Guid& pgDocid, Byte& piLevel, UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32& pdwNumBuildDependencies, Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder, Guid&
    pgDocScopeId)  
    at Microsoft.SharePoint.SPWeb.GetWebPartPageContent(Uri pageUrl, Int32 pageVersion, PageView requestedView, HttpContext context, Boolean forRender, Boolean includeHidden, Boolean mainFileRequest, Boolean fetchDependencyInformation, Boolean& ghostedPage,
    String& siteRoot, Guid& siteId, Int64& bytes, Guid& docId, UInt32& docVersion, String& timeLastModified, Byte& level, Object& buildDependencySetData, UInt32& dependencyCount, Object& buildDependencies, SPWebPartCollectionInitialState&
    initialState, Object& oMultipleMeetingDoclibRootFolders, String& redirectUrl, Boolean& ObjectIsList, Guid& listId)  
    at Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.FetchWebPartPageInformationForInit(HttpContext context, SPWeb spweb, Boolean mainFileRequest, String path, Boolean impersonate, Boolean& isAppWeb, Boolean& fGhostedPage, Guid& docId,
    UInt32& docVersion, String& timeLastModified, SPFileLevel& spLevel, String& masterPageUrl, String& customMasterPageUrl, String& webUrl, String& siteUrl, Guid& siteId, Object& buildDependencySetData, SPWebPartCollectionInitialState&
    initialState, String& siteRoot, String& redirectUrl, Object& oMultipleMeetingDoclibRootFolders, Boolean& objectIsList, Guid& listId, Int64& bytes)  
    at Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.GetWebPartPageData(HttpContext context, String path, Boolean throwIfFileNotFound)  
    at Microsoft.SharePoint.ApplicationRuntime.SPVirtualPathProvider.GetCacheKey(String virtualPath)  
    at System.Web.Compilation.BuildManager.GetVPathBuildResultFromCacheInternal(VirtualPath virtualPath, Boolean ensureIsUpToDate)  
    at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)  
    at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)  
    at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate)  
    at System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection)  
    at System.Web.UI.Page.ApplyMasterPage()  
    at System.Web.UI.Page.PerformPreInit()  
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  
    at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  
    at System.Web.UI.Page.ProcessRequest()  
    at System.Web.UI.Page.ProcessRequest(HttpContext context)  
    at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()  
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)  
    at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)  
    at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)  
    at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)  
    at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)  
    at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)  
    at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)  
    at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)  
    at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)  
    at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
    5/7/2013 00:31:44:69    App Pool: MySites    0x1DC8    SharePoint Foundation    Files    aiv4w    Medium    4001199c-6bd8-c03d-920f-55177fbff00c  
     Spent 0 ms to bind 33542 byte file stream
    5/7/2013 00:31:44:72    App Pool: MySites    0x1DC8    SharePoint Portal Server    User Profiles    ai7z6    High    4001199c-6bd8-c03d-920f-55177fbff00c  
     User was not successfully retrieved: i:0#.w|DOMAIN\AUSER in ProfileUI.OnInit. Seeing if this is a system account
    5/7/2013 00:31:44:72    App Pool: MySites    0x1DC8    SharePoint Portal Server    User Profiles    ai7z7    High    4001199c-6bd8-c03d-920f-55177fbff00c  
     User i:0#.w|DOMAIN\AUSER not found and not a system account.
    5/7/2013 00:31:44:72    App Pool: MySites    0x1DC8    SharePoint Portal Server    User Profiles    ahn7m    Unexpected    4001199c-6bd8-c03d-920f-55177fbff00c  
     ProfileUI: Unhandled exception inside OnInit: Microsoft.Office.Server.UserProfiles.UserNotFoundException: DOMAIN\AUSER  
    at Microsoft.SharePoint.Portal.WebControls.ProfileUI.OnInit(EventArgs e)
    5/7/2013 00:31:44:72    App Pool: MySites    0x1DC8    SharePoint Portal Server    User Profiles    ahn7h    Unexpected    4001199c-6bd8-c03d-920f-55177fbff00c  
     ProfileEditor: Unhandled exception inside OnInit: Microsoft.Office.Server.UserProfiles.UserNotFoundException: DOMAIN\AUSER  
    at Microsoft.SharePoint.Portal.WebControls.ProfileUI.OnInit(EventArgs e)  
    at Microsoft.SharePoint.Portal.WebControls.ProfileEditor.OnInit(EventArgs e)
    5/7/2013 00:31:44:72    App Pool: MySites    0x1DC8    SharePoint Foundation    General    8nca    Medium    4001199c-6bd8-c03d-920f-55177fbff00c  
     Application error when access /_layouts/15/EditProfile.aspx, Error=DOMAIN\AUSER
    at Microsoft.SharePoint.Portal.WebControls.ProfileUI.OnInit(EventArgs e)  
    at Microsoft.SharePoint.Portal.WebControls.ProfileEditor.OnInit(EventArgs e)  
    at System.Web.UI.Control.InitRecursive(Control namingContainer)  
    at System.Web.UI.Control.InitRecursive(Control namingContainer)  
    at System.Web.UI.Control.InitRecursive(Control namingContainer)  
    at System.Web.UI.Control.InitRecursive(Control namingContainer)  
    at System.Web.UI.Control.InitRecursive(Control namingContainer)  
    at System.Web.UI.Control.InitRecursive(Control namingContainer)  
    at System.Web.UI.Control.InitRecursive(Control namingContainer)  
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    5/7/2013 00:31:44:72    App Pool: MySites    0x1DC8    SharePoint Foundation    Runtime    tkau    Unexpected    4001199c-6bd8-c03d-920f-55177fbff00c  
     Microsoft.Office.Server.UserProfiles.UserNotFoundException: DOMAIN\AUSER
    at Microsoft.SharePoint.Portal.WebControls.ProfileUI.OnInit(EventArgs e)  
    at Microsoft.SharePoint.Portal.WebControls.ProfileEditor.OnInit(EventArgs e)  
    at System.Web.UI.Control.InitRecursive(Control namingContainer)  
    at System.Web.UI.Control.InitRecursive(Control namingContainer)  
    at System.Web.UI.Control.InitRecursive(Control namingContainer)  
    at System.Web.UI.Control.InitRecursive(Control namingContainer)  
    at System.Web.UI.Control.InitRecursive(Control namingContainer)  
    at System.Web.UI.Control.InitRecursive(Control namingContainer)  
    at System.Web.UI.Control.InitRecursive(Control namingContainer)  
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    5/7/2013 00:31:44:72    App Pool: MySites    0x1DC8    SharePoint Foundation    General    ajlz0    High    4001199c-6bd8-c03d-920f-55177fbff00c  
     Getting Error Message for Exception System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Office.Server.UserProfiles.UserNotFoundException: DOMAIN\AUSER  
    at Microsoft.SharePoint.Portal.WebControls.ProfileUI.OnInit(EventArgs e)  
    at Microsoft.SharePoint.Portal.WebControls.ProfileEditor.OnInit(EventArgs e)  
    at System.Web.UI.Control.InitRecursive(Control namingContainer)  
    at System.Web.UI.Control.InitRecursive(Control namingContainer)  
    at System.Web.UI.Control.InitRecursive(Control namingContainer)  
    at System.Web.UI.Control.InitRecursive(Control namingContainer)  
    at System.Web.UI.Control.InitRecursive(Control namingContainer)  
    at System.Web.UI.Control.InitRecursive(Control namingContainer)  
    at System.Web.UI.Control.InitRecursive(Control namingContainer)  
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  
    at System.Web.UI.Page.HandleError(Exception e)  
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  
    at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  
    at System.Web.UI.Page.ProcessRequest()  
    at System.Web.UI.Page.ProcessRequest(HttpContext context)  
    at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()  
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    5/7/2013 00:31:44:72    App Pool: MySites    0x1DC8    SharePoint Foundation    General    aat87    Monitorable    4001199c-6bd8-c03d-920f-55177fbff00c  
    5/7/2013 00:31:44:73    App Pool: MySites    0x1DC8    SharePoint Foundation    Monitoring    b4ly    Medium    4001199c-6bd8-c03d-920f-55177fbff00c  
     Leaving Monitored Scope (Request (GET:http://mysite.DOMAIN.loc:80/_layouts/15/EditProfile.aspx?UserSettingsProvider=234bf0ed%2D70db%2D4158%2Da332%2D4dfd683b4148&ReturnUrl=http%3A%2F%2Fmysite%2EDOMAIN%2Eloc%2Fperson%2Easpx%3Faccountname%3DDOMAIN%255CAUSER&accountname=DOMAIN%5CAUSER)).
    Execution Time=87.1739285300227
    It seems similar to an issue in the blog post here: http://kb4sp.wordpress.com/2012/12/05/user-cannot-be-found-shenanigans-one-way-active-directory-trusts-and-sharepoint-2013/ however I tried what was suggested and it didn't work.
    Any help with this is appriciated.

    This line offers clues about the actual problem:
    Microsoft.Office.Server.UserProfiles.UserNotFoundException: DOMAIN\AUSER 
    According to the MSDN link (http://msdn.microsoft.com/en-us/library/microsoft.office.server.userprofiles.usernotfoundexception.aspx)
    it is not able to find the user in the profile store. Additionally the link you mentioned (http://kb4sp.wordpress.com/2012/12/05/user-cannot-be-found-shenanigans-one-way-active-directory-trusts-and-sharepoint-2013)
    suggests that the account being used to validate accounts on the production domain may have a problem.
    If there a way you can test that account in isolation against the DC?
    With Regards Shailen Sukul Entrepreneur/Software Architect/Developer/Consultant/Trainer (BSc | Mct | Mcpd (.Net 2/3.5/SharePoint2010) | Mcts (Sharepoint 2010/MOSS/WSS), Biztalk, Web, Win, Dist Apps) | Mcitp(SharePoint) | Mcsd.NET | Mcsd | Mcad) MSN | Skype
    | GTalk Id: shailensukul Twitter: http://twitter.com/shailensukul Website: http://sukul.org Blog: http://shailen.sukul.org/ http://www.linkedin.com/in/shailensukul

  • User profile synchronization service wont start after SharePoint Service pack SP2

    Hi
    -Using SharePoint 2010 with 1 appserver and 2 frontend webservers on Service Pack2. (ms server 2008r2, SQLServer2008r2).
    -Farmaccount has been set to local admin on all sp servers.
    -Firstly, the User Profile Service Application runs fine and is started. Dont mix it with the User profile synchronization Service.
    Prior to installing SP2 User profile service application and user profile synchronization service were running fine.
    The first thing I did after the installation of SP2 was running the:
    -psconfig -cmd upgrade -inplace b2b -wait
    As SharePoint setup user (spadmin).
    This ran fine on the 2 front end web servers.
    However i got one fault on the Appserver:
    I have also tried:
    PSConfig.exe -cmd upgrade -inplace b2b -force -cmd applicationcontent -install -cmd installfeatures
    which led to same resulting error.
    So I tried to start the Use profile synchronization service as suggested manually by logging on with the Farmaccount, starting the user profile synchronization service through Central Administration. This led to Stuck on Starting status. 
    The windows services Forefront had status starting, then stopped.
    One question:
    Prior to starting the User profile synchronization service through Central Administration. What account and startup status should the 2 Forefront Windows Services have? (Automatic and local system?) or (Automatic and Farmaccount?) or (Disabled and Local
    system?) or (Disabled and farmaccount?). Because i know that SharePoint UPA will provision these services though Central Administration. However what is the default state prior to starting the Synchronization service?
    So i continue...
    Since it was stuck on starting i stopped it with:
    stop-SPServiceInstance -identity <upaSyncguid>
    which gave me:
    Stop-SPServiceInstance : An object of the type Microsoft.SharePoint.Administrat
    ion.SPServiceInstanceJobDefinition named "job-service-instance-36bdf2ef-58f2-45
    e5-8f78-ab75f646611a" already exists under the parent Microsoft.SharePoint.Admi
    nistration.SPTimerService named "SPTimerV4". Rename your object or delete the
    and i could fix with:
    #Stop the stopping:
    stsadm -o provisionservice -action stop -servicetype "Microsoft.Office.Server.Administration.ProfileSynchronizationService, Microsoft.Office.Server.UserProfiles,
    Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" -servicename FIMSynchronizationService
    I also removed the forefront certificate from personal - certificate store, as this is provisioned when user profile synchronization service is provisioned.
    That set the Central Administration Status on the User profile synchronization Service to disabled. Fine.
    Everytime i tried to start the user profile synchronization service (logged on as farmaccount), left it for 10-15 min and did iisreset and restart sharepoint timer service, and also tried rebooting the appserver. No change.
    A thought, is it important to restart timer service and do iisreset on the two frontend servers after trying to start the user profile synchronization service on the appserver?
    I'm getting to the point were i just want to delete the whole service application and set it up anew...
    any tips will be greatly appreaciated.
    brgs
    Bjorn

    You're very welcome, hope it helped, if not the I suggest you clear the configuration cache as follows.
    The config cache is where config settings are stored locally on the Microsoft SharePoint server, so a SQL call isn’t required.
    To clear the cache:
    Stop the SP Timer service. To do this, follow these steps:
    Click Start, point to Administrative Tools, and then click
    Services.
    Right-click SharePoint 2010 Timer, and then click Stop.
    Close the Services console.
    On the computer that is running Microsoft SharePoint Server 2010 and on which the Central Administration site is hosted, click
    Start, click Run, type explorer, and then press ENTER.
    In Windows Explorer, locate and then double-click the following folder:
    %SystemDrive%\ProgramData\Microsoft\SharePoint\Config\GUID
    Notes
    The %SystemDrive% system variable specifies the letter of the drive on which Windows is installed. By default, Windows is installed on drive C.
    The GUID placeholder specifies the GUID folder. There may be more than one of these.
    The ProgramData folder may be hidden. To view the hidden folder, follow these steps:
    On the Tools menu, click Folder Options.
    Click the View tab.
    In the Advanced settings list, click Show hidden files and folders under
    Hidden files and folders, and then click OK.
    You can also simply type this directly in the path if you do not want to show hidden files and folders.
    Back up the Cache.ini file. (Make a copy of it. DO NOT DELETE THIS FILE, Only the XML files in the next step)
    Delete all the XML configuration files in the GUID folder (DO NOTE DELETE THE FOLDER). Do this so that you can verify that the GUID folders content is replaced by new XML configuration files when the cache is rebuilt.
    Note When you empty the configuration cache in the GUID folder, make sure that you
    do NOT delete the GUID folder and the Cache.ini file that is located in the GUID folder.
    Double-click the Cache.ini file.
    On the Edit menu, click Select All.
    On the Edit menu, click Delete.
    Type 1, and then click Save on the
    File menu. (Basically when you are done, the only text in the config.ini file should be the number 1)
    On the File menu, click Exit.
    Start the Timer service. To do this, follow these steps:
    Click Start, point to Administrative Tools, and then click
    Services.
    Right-click SharePoint 2010 Timer, and then click Start.
    Close the Services console.
    Note The file system cache is re-created after you perform this procedure. Make sure that you perform this procedure on all servers in the server farm.
    Make sure that the Cache.ini file in the GUID folder now contains its previous value. For example, make sure that the value of the Cache.ini file is not 1.
    Check in the GUID folder to make sure that the xml files are repopulating. This may take a bit of time.
    BRGS
    Mishagri

  • SharePoint 2013 User Profile Synchronization service problem

    After one week trying (three clean installs of SharePoint 2013), I haven't succeed to start "User Profile Synchronization service".
    Environment:
    Domain environment with two Windows Server 2012 R2 domain controllers. 
    Fully qualified domain name matches NetBIOS name (domain.com - DOMAIN)
    Two tiers: SQL Server 2014 enterprise on Windows Server 2012 R2, and SharePoint 2013 SP1 on Windows Server 2012 R2.
    I'm using named SQL instance for SharePoint (<SQLSRV>\<SHAREPOINT>), and SQL alias on SharePoint app server.
    All SharePoint prerequisites are installed successfully.
    SharePoint 2013 is installed successfully.
    Hotfix 2760265 is installed (before configuring SharePoint)
    SharePoint is configured successfully
    Preparing MySites host:
    MySites web application is created with separate AppPool, and with address https://my.domain.com.
    Certificate used is wild-card cert (*.domain.com), issued by trusted local PKI
    Managed path "personal" is created
    Site collection of type "My Sites Host" is created at root path
    "Self-Service Site Creation" is enabled for https://my.domain.com web application
    Farm account permissions:
    Local admin at SharePoint application server
    "Log on locally" at SharePoint application server
    "Replicate Directory Changes" at domain level
    I've even tried with adding farm account into domain admins group :)
    After trying to to start user profile synchronization service, service is in "starting" state about 5-10 min, and then returns to "stopped" state. 
    ULS log shows the following exceptions:
    ILM Configuration: Error 'ERR_CONFIG_DB'
    UserProfileApplication.SynchronizeMIIS: Failed to configure MIIS post database, will attempt during next return. Exception: System.Configuration.ConfigurationErrorsException: ERR_CONFIG_DB
    UserProfileApplication.SynchronizeMIIS: Failed to configure MIIS post database, will attempt during next return. Exception: System.NullReferenceException: Object reference not set to an instance of an object
    Event viewer log:
    Event ID 6398, The Execute method of job definition Microsoft.Office.Server.UserProfiles.LMTRepopulationJob (ID <guid>) threw an exception. Unexpected exception in FeedCacheService.BulkLMTUpdate: Region not found..
    some perfnet event id 2004 errors
    Troubleshooting:
    I've tried with clearing configuration cache
    Assigning farm account to domain admins group
    Installing form scratch three times, and thousand times from different checkpoints...
    I've saw 'ERR_CONFIG_DB' like million times, but never "Started" next to "User Profile Synchronization service". Does anyone has actually succeeded to start this service? :)
    I would really appreciate any help. Thanks!
    P.S. I can't stop asking myself is it was really necessary to develop such complex, problematic, and log-tells-nothing software just for getting user info from AD? Honestly, after more then decade experience as software developer and software architect -
    I must say I doubt...
    Fat Dragon

    The full packages are available:
    http://blogs.technet.com/b/stefan_gossner/archive/2014/05/08/april-2014-cu-for-sharepoint-2013-has-finally-been-released.aspx
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

Maybe you are looking for