How to get User Profile Service information on user OTHER THAN current user?
So much information on how to autopopulate information for the current user or the logged in user in InfoPath. But what about other users? What if there's a field that's 99/100 times going to be the same person, but it's not the person that's
logged in?
I would like not just to autopopulate a person field to be a specific user (which is not the current user), but I'd also like to autopopulate surrounding fields for that user's Title and Department.
For instance, consider the following 6 fields.
1. Current User Name:
2. Current User Title:
3. Current User Department:
4. Current User’s Supervisor’s Name:
5. Current User’s Supervisor’s Title:
6. Current User’s Supervisor’s Department:
I know how to get the first three; the internet is swarming with that information.
I'm struggling the last three; searching for this information is impossible without turning up information on current user instead.
The furthest I've gotten so far is to autopopulate Current User's Supervisor's Name by:
1. Show Advanced View on Fields pane
2. Expand my Field (which is really a group) called IT Manager Name
3. Expand what shows up under that which is pc:Person
4. Right click AccountId and choose Properties
5. Set Default value to [our domain]\[IT Manager's ads username]
This solves how to get that 4th field my example list above Current User's Supervisor's Name to autopopulate, but how do I then get the Title and Department from the value I set in step 5 [our domain]\[IT Manager's ads username]? Or is there a different/better
way altogether to go about getting a non-current user's info to autopopulate in InfoPath form fields?
*UPDATE*
I just want to clarify that I'm not asking if there's a way to autopopulate the current user's supervisor. I'm aware that Manager is one of the User Profile service fields. But the point is that I want to have a field in which the current
user fills in a username (different than his or her own), and to have User Profile Service called on that provided username to autopopulate Title and Department in surrounding fields. The question is about how to call information with User Profile Service
on any provided username, specifically what steps to take to set this up in InfoPath Designer.
Have a look at the REST API. You can use the /_api/sp.userprofiles.peoplemanager/getpropertiesfor endpoint to query the user profile service for user profile properties of any user.
The API is documented here: https://msdn.microsoft.com/en-us/library/office/dn790354.aspx and here https://msdn.microsoft.com/en-us/library/office/jj163800.aspx
Regards, Matthew
MCPD | MCITP
My Blog
View
Matthew Yarlett's profile
See my webpart on the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
Upload and Crop User Profile Photos
Similar Messages
-
Error in Windows 7: User Profile Service was not logged on. The user profile can not be loaded. Administrator profile and the code does not work. What do I do?
HP G5384sc desktop pcHello
Unfortunately I did not manage to fix my computer yet. My printer is broken so I bought a new one, but since I do not have administrator rights, I can not connect the new printer, so I have to write all-installing notes down with pencil and simultaneously translate them into Danish so it is a very slow process. I'll tell you if it succeeds, otherwise there is of course the primitive way to buy a new computer, but it's the same as giving up. Not yet.
Until now, many thanks for the good suggestions.
Kind regards
Birgeres -
How to connect to database with a schema other than current user?
Dear all,
I would like to know whether it is possible to specify a specific schema while connecting to a database directly by SQL*Plus command. Usually here is what I do (assuming that db01.WORLD is already in tnsnames.ora)
$ sqlplus scott/[email protected], in this case the user is SCOTT and the current schema is also SCOTT. If I want to change the current schema I have to use an ALTER SESSION SET CURRENT_SCHEMA command. So what I would like to know is that whether there is an alternative, that is, proceeding in a way where the user SCOTT connects directly (by using SQL*Plus shell) to a SCHEMA other than SCOTT (in other words, is it possible to specify the desired schema at the connection time, for example user SCOTT who connects under a schema named 'management')
Thanks in advance,
DariyooshThe ordinary way to do this is to
1 - grant object privileges from the other schema to scott (Refer to the GRANT command in the online documentation)
2 - create a private synonym in the Scott user (Look up CREATE SYNONYM in the documentation)
The only other solution would be to make sure to create an after login trigger running the alter session command.
Finally two words of advise
1 You are recommended to leave the user Scott alone, and not mess it up with your own additions.
2 You seem to treat this forum as a free Oracle class. As the people responding here are volunteers you are kindly advised to stop doing that and use the online documentation at http://tahiti.oracle.com and read at least the 'Getting Started' document and/or the '2-Day' document for your unknown version of Oracle.
Sybrand Bakker
Senior Oracle DBA -
I have a farm with one WFE, one APP, and one SQL server. The User Profile Service runs on both WFE and APP, the User Profile Sync Service is on the APP server. There is a single User Profile service application running that pulls from 4 different AD
import sources: two in the US, one in London, and one in Mexico.
There is a nightly incremental synch.
There is an issue where the London users need the synch to occur hourly.
There are some complexities with one of the US sources in that would make it difficult to run the current User Profile service hourly, plus there is a performance concern.
I'm interested in possibly creating a second User Profile Service Application that reads only from London and runs hourly.
Beyond creating the User Profile service and scheduling hourly, what should I be concerned about?
Will I need to (re)create new Audiences based on those from the original User Profile Service App? Run them immediately after User Profiles? Will there be an interruption in access during that gap?
Recreate custom User Properties?
Recreate any Forefront modifications?
New Profile/Sync/Social DBs?
etc?
Thanks,
ScottHi Scott,
According to your description, my understanding is that you want to use multiple user profile service application.
Yes, you can do it. Only one user profile application can be configured to work with the Profile Synchronization Instance. If you want more UPS instance, you need to start UPS on different server.
Here are some similar posts for you to take a look at:
https://social.technet.microsoft.com/Forums/en-US/c922d0a8-db7f-4bdd-87a2-686c836bf406/is-it-possible-to-have-multiple-user-profile-service-applications-on-a-single-server-farm?forum=sharepointadminprevious
https://social.technet.microsoft.com/Forums/sharepoint/en-US/c771591b-bff6-4d57-99a1-7d46ca1d9903/multiple-user-profiles-service-applications?forum=sharepointgeneralprevious
https://social.technet.microsoft.com/Forums/en-US/26da9723-70a5-43a2-a2b5-faebe60dbe1a/is-it-possible-to-have-multiple-user-profile-service-applications-on-a-single-farm?forum=sharepointadminprevious
Best Regards,
Wendy
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]
Wendy Li
TechNet Community Support -
User Profile Services:How get to know how many user are using my site.
Hi,
User Profile Services:How get to know how many user are using my site.
Recently i have done migration sharepoint 2010 to sharepoint 2013,I did not migrate USer profile services because less user are using user profile here,but i need to know how many few uer are using my site for data store.
Is any why we can get to know user name who are using my site document library and other things.
Hasan Jamal Siddiqui(MCTS,MCPD,ITIL@V3),Sharepoint and EPM Consultant,TCS
|
| TwitterFallowing command shows only count of my site user ,I need to know how many upload data on my site
Hasan Jamal Siddiqui(MCTS,MCPD,ITIL@V3),Sharepoint and EPM Consultant,TCS
|
| Twitter -
How do I prevent "The user profile service service failed the log on" error messages?
I work for an organization with approximately 60 staff members across ~80 Windows 7 Professional PCs. Users log in with Active Directory accounts.
Approximately once per month, a random user will get an error message while attempting to log into their machine that says "The user profile service service failed the log on." The solution to resolve this issue is here: http://support.microsoft.com/kb/947215?ppud=4&wa=wsignin1.0.
The problem is that I want to PREVENT this issue from happening, as it is incredibly inconvenient for the user. I had one staff member board a 5-hour plane trip expecting to do work, and once she got in the air she logged in and
received the error message and was unable to use her computer for the trip. I've had others locked out of their computer with deadlines to get things done, while I am at home off the clock. Editing the registry is not an easy fix, and so it's not something
I can just post instructions for in a knowledgebase article.
Does anyone know how to prevent this issue from occurring? I believe that it has something to do with a network-based startup script, or a service trying to connect to our file server, or the computer trying to connect to our ad server. All of these
are blocked by firewalls (unless the user is off-site), and I suspect that the services may be timing out, causing the user profile service service failed the logon error message, but I can't seem to eliminate it, after nearly a year of trying.
90% of the time this problem occurs when the user is off-site, but it has happened while the user is in the office too. Once the user gets this error message, the only way to resolve the problem is to log into their computer as a localadministrator account
and perform the method #1 fix in the knowledgebase article.
ThanksHave you checked the logged files in event viewer around the time when problem occurred?
Is there any suspicious events like error or warning related to this issue.
Try run Active Directory Best Practice Analyzer:
http://technet.microsoft.com/en-us/library/dd759260.aspx -
How can I recover from Windows login failure: User Profile Service failed the login
I have Boot Camp installed on a separate partition on a MacBook Pro, late 2011 model. I have Mavericks installedd (10.9.1). I use, variously, both Parallels and VM Fusion to access the BootCamp installation of Windows 7.
Except for having recently installed updates of both VMFusion and Parallels, I got this failure message when trying to login to Windows:: The User Profile Service failed the logon. User profile cannot be loaded.
I had just been on Windows a few moments previously to access a business site that only accepts IE. Appreciate any useful insight on dealing with this issue without having to totally replace the BootCamp installation. A lot of the suggestions on Microsoft Windows repair sites are either incomprehensible or don't seem applicable.Same problem here. Windows 7 support gives several so-called fixes (including regedit tweaks, eliminating the blocked user account), but all require access to that partition. So far as I know, I have only one user, since this is my personal computer -- unless there is some sort of default "administrator" logon.
Windows support says the problem might be caused by antivirus software running while we try to logon, but this problem has never happened to me before, and I have not made anti-virus changes (maybe AVG or Avast did so automatically)
I tried to access regedit through Finder, but get a garbled text-edit with the message that regedit cannot be opened by DOS.
So I wonder (a) is there a default admin logon? (b) Can we tinker with the settings inside Windows from Finder, or (c) how else can we get into Windows?
My setup: Macbook Pro (Fall 2010), 10.6.8, boot camp, Windows 7. -
How can i start a new user profile service in ordre to replace an old one ?
hi
i create a new user profile service in ordre to replace an old one
when i use : Get-SPServiceApplication i can see that hi is created but
when i use Get-SPServiceInstance i can see it i can see only the old oneHi,
The Get-SPServiceInstance returns the services instance for a specific server or the entire farm. The service instance GUID is unique to every farm and cannot be changed.
For starting a fresh with the User Profile Service configuration, you can unprovision and re-provision the User Profile Service:
http://sharepoint.stackexchange.com/questions/16146/deleted-service-application-service-instances-remain
http://www.harbar.net/articles/sp2010ups2.aspx#ups14
Best Regards,
Eric
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] -
How does user profile service work if i want to use SharePoint Hybrid
I plan to use sharepoint hybrid
I want to know how does the user profile service work
is it going to use two services ? one is in online ,one is on local ?
actually i want to use one user profile service both online and onpremises can usehookedonlerman wrote:
but will that replace the use of using up data? (wifi & 3G)
It sounds as if you don't really understand what "using data" means. Data is not something different from WiFi and 3G, it's something sent over WiFi and 3G. Think of data as water and WiFi and 3G as types of pipes. Some apps need to send and receive data to work. That data can be sent or received in different ways. It can be sent over WiFi or 3G. Both official iPhone carriers in the U.S. have metered data plans. It's sounds as if you're talking about AT&T's 200 mb data plan. WiFi is not provided by your cellular carrier. You can have WiFi from your Internet Service Provider at home or you can access free WiFi at places like McDonalds or Starbucks or paid WiFi at places like airports.
If you have WiFi turned on on your phone and WiFi is available, the phone will default to WiFi. WiFi is faster than 3G and generally not metered, and is sometimes even free. If you are out of range of WiFi, you would be using 3G to send and receive your data. With a metered plan, you need to keep an eye on how much you are using because if you go over your allowance, you will be charged additional fees. -
Hi All,
I want to know how to get the health , performance information and about the services run on devices that have connected to the system center to my c# application. Also I need to know about the information of databases that have connected to system center.
I will appreciate your feedback
Thank youHi,
You can configure service monitor for the required service on the server
refer below link for how to configure service monitoring
http://www.bictt.com/blogs/bictt.php/2011/03/17/scom-monitoring-a-service-part3
You can use SCOM SDK to connect to the scom server using c# and get required information
http://msdn.microsoft.com/en-us/library/hh329086.aspx
you can find the database in below registry path on management server
HKLM:\SOFTWARE\Microsoft\Microsoft Operations Manager\3.0\Setup\DatabaseName
Regards
sridhar v -
How to handle User Profile service when merge SP2010 farm to a SP2013 farm?
We have a SP2010 farm and a SP2013 farm. Both are resident in same domain and their User Profile Service are sync with the same Active Directory.
To save system resource, we decide to migrate SP2010 site collections to SP2013 farm. From my understanding, I need to migrate the UPS database and perform upgrade at SP2013. My questions are:
1. After upgrade the old UPS I will see two UPS applications in the same farm (e.g. UPS-old, UPS-new) and they can run parallel just fine?
2. Since both applications are sync with same AD, should I and can I merge them? How to do so? Thanks.Hi Mark,
As you used the same AD for SharePoint 2010 farm and SharePoint 2013 farm, what’s more, there were not MySites in SharePoint 2010, it is not neccessary for upgrading User Profile Service application from SharePoint 2010 to SharePoint 2013.
As you said you had upgraded User Profile Service application to SharePoint 2013, I suggest you delete the User Profile Service application which was upgraded from SharePoint 2010.
I hope this helps.
Thanks,
Wendy
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]
Wendy Li
TechNet Community Support -
How to check user profile service working in sharepoint 2013?
HI All,
How to check user profile service working or not in sharepoint 2013? Thanks.Hi,
Select which OU's you want to synchronize, then check if all users in those OU's have a user profile in the user profile service application.
Nico Martens - MCTS, MCITP
SharePoint 2010 Infrastructure Consultant / Trainer -
Hi All,
I am currently completing a project for college which involves the creation of a domain, OU's, GPO's etc within a virtual environment.
I am using Windows Server 2008 Enterprise running this on VMware however after having completed and tested all my GPO's now none of my users are able to log on to the domain and keep getting the following error message "The user profile service failed
the logon" "User profile cannot be loaded".
I have tried to a lot of different options prior to posting which include:
Creating a new user account/s in case the previous user policies were corrupt the same error message is shown.
I also configured my DC to allow users to log onto the DC in case this was a network issue but the same error still exists.
My Administrator account always logs onto the DC without fail and applies all the GPO's as it should.
I have rebuilt my servers twice now at this stage and the same problems keep happening at first it was just confined to users within a single OU but now is Domain wide any suggestions on what I can do.
Thanks,
JohnJohn,
Since this is a project, you may have experimented with various settings in multiple Group Policies, so I would recommend you run the Group Policy Modelling Wizard, as it will show you all the GP settings down to a specific user on a specific computer, plus
tell you which Group Policy sets and which settings, and thereby perhaps find where the problem occurs.
Please mark as answer or vote
as helpful when
it applies. Thanks! -
How to merge User Profile Service Applications
We have a SP 2010 farm with UPSA and some the users have edited their profile properties in that. We have planned to move the web application from SP 2010 farm to SP 2013 farm which already has a user profile service application in it.
Both the SP2010 and SP2013 farms are using same AD.
What we need after upgrading to SP 2013,
1. The edited user profile properties should be updated in the SP 2013 farm
2. SP 2013 farm should have only one UPSA.
Please help to migrate the UPSA from SP 2010 and merge with the existing 2013 UPSA.
Thanks
RamkumarHi Ramkumar,
Per my knowledge, we cannot merge the two user profile service application.
If you need the custom user properties in your User profile service application in SharePoint 2013, I recommend to create a mapping to export the user properties to AD from SharePoint 2010 user profile service application and then create a mapping to import
the user properties to user profile service application in SharePoint 2013.
http://blogs.msdn.com/b/tehnoonr/archive/2010/11/22/mapping-user-profile-properties-in-sharepoint-2010-to-ldap-attributes.aspx
Or you just need to migrate the User Profile service application from SharePoint 2010 to SharePoint 2013 and use this instead of the existing User Profile service application in SharePoint 2013.
http://technet.microsoft.com/en-us/library/jj839719(v=office.15).aspx
http://technet.microsoft.com/en-us/library/jj729795(v=office.15).aspx
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
User profile service not updating 'Title' in user information list
Hi,
In our SharePoint farm, following two user profile sync timer jobs are successfully running but not updating the 'Title' in the hidden user information list.
User Profile to SharePoint Full Synchronization
User Profile to SharePoint Quick Synchronization.
Can someone point me to the right direction? Please note that I don't want to use powershell script shown here to update the 'Title' in the user information list -
http://blog.falchionconsulting.com/index.php/2011/12/updating-sharepoint-2010-user-information/.
Thanks,
Manvir
ManvirHi,
There are two jobs, User Profile to SharePoint Quick Sync and User Profile to SharePoint Full Sync, that synchronize the User Profile database information with the user information list. Sometimes this stops working (properly) and in that case
you need to run:
Stsadm.exe –o sync –listolddatabases 0
Stsadm.exe –o sync –deleteolddatabases 0
The first command will display all the databases and when they have been sync’d last.
The second command will delete the records corresponding to those databases (it doesn't delete databases/end user data).
Anyways, running this will basically tell the timer jobs that they have never sync’d and force them to carry on as if it’s the first time.
Go to Central Admin and fire off the User Profile to SharePoint Full Synchronization
job.
For detailed information, refer to the following article:
https://donalconlon.wordpress.com/2012/03/02/sharepoint-user-information-list-is-not-being-updated/
Best Regards,
Lisa Chen
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]
Maybe you are looking for
-
How can I display error log of a standard program in my custom program?
Hello Experts, I have a requirement where I submit a standard program from my custom module pool program as a background job. I use the TO SAP-SPOOL and thus the log is available when I go to SM37 and check the spool list. I have a requirement that I
-
I want to reinstall an app [it's a game], but the thing is, I've already backed up the data in iCloud, so all it does is after reinstalling the app, it still has all the data I had when I backed it up in the cloud. But I don't want that data, I just
-
install oracle Linux 5.0 update 3 i am not able to telnet are ftp .. i am able to use ssh via putty any idea
-
You don't have permission to use the application "ksfetch"
When i finished install Google update software, It pop up "You don't have permission to use the application "ksfetch"" many times one day, I closed it, it pop up again. The pop up said"You don't have permission to use the application"ksfetch", For mo
-
IOStorageFamily.kext issue
Hi all, I recently attempted to change the icon for my hard drive. Instead of doing the copy and paste in the get info window, I had thought it would be a more thorough change if I modified the Internal.icns file within IOStorageFamily.kext (/System/