Auto populate user email and manager email address

I have SharePoint List which is connected to InfoPath form.
Form have 2 required filed ( Recipient and Manager Email).
I wonder if it is possible to auto populate those fields.
Right now I am using this code to get user  userid = username() 
simam

Hello,
Use userprofileservices.asmx service to get user info's and manager info.
http://claytoncobb.com/2009/06/21/userprofileservice-extended/
http://shaunpitt.wordpress.com/2012/07/18/infopath-get-the-managers-details-of-the-user-selected-from-the-person-picker/
Hope it could help
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help

Similar Messages

  • System_Mail_Send - Get user email address

    Hi,
    I am trying to use System_Mail_Send to send a notification in the end of a Job Chain.
    How I can retrieve user email address from SAP CPS user(UME)?
    I want to use this information as To destination.
    Regards,
    André Ferreira

    Hi Andre,
    Actually, I had no time to test what I wrote earlier ... the code below should work in a library source:
    // Example code to illustrate
    package masalan;
    import com.redwood.scheduler.api.model.SchedulerSession;
    import com.redwood.scheduler.api.model.Subject;
    import com.redwood.scheduler.api.model.enumeration.SubjectType;
    import com.redwood.scheduler.api.scripting.variables.*;
    public class user
    public static String getEmailAddress(String username)
         //Default email address is [email protected]
          String defaultEmail = "[email protected]";
          if (username == null || username.trim().isEmpty()) return defaultEmail;
          SchedulerSession jcsSession = ScriptSessionFactory.getSession();
          Subject subject = jcsSession.getSubjectByTypeName(SubjectType.User,  username);
          String email = "";
          if (subject != null) email = subject.getEmail();
          if (email != null && email.endsWith("@company.com")) return email;
          return defaultEmail;
    You create REL entry points:
    Name - getEmail
    FQ Class Name - masalan.user
    Method Signature - getEmailAddress(String)
    Now, create a parameter Username on the job chain.
    Parameter To should have  the value =Custom.getEmail(chainParameters.Username)
    You specify the username in the Username parameter, the email address will be retrieved from CPS. The user must have logged on to CPS at least once, alternatively, you can import the user.
    Note that to import the user, you must assign at the very least the AccessScheduler action in UME.
    Regards,
    HP
    Message was edited by: h. Carpenter - missed an import and add SchedulerSession
    Message was edited by: h. Carpenter - Improved error handling, more secure code (it uses default email address if anything goes wrong or if somebody tries to use an external email address)

  • I would like to change my user email address to a different email? I am currently subscribed with [delete] but would like to change it to [delete]

    I would like to change my user email address to a different email?
    I am currently subscribed with [email protected] but would like to change it to [email protected]

    Change/Verify Account https://forums.adobe.com/thread/1465499 may help
    -email address https://forums.adobe.com/thread/1446019

  • When sending email messages from iPhone,iMac, or iPad, email address automatically added to my contacts list on iPhone.  How do I trace this down and stop this auto addition of email addresses to my contacts list?

    I am not sure what generates the email address as a contact, be it the iPhone or iMac.  I use iCloud to sync up my contacts/address book.  This appears to happen when I am using Mac Mail on my iMac,  but I have no clue where to begin to look to stop this auto addition.  I have looked in Mail preferences on my iMac and in my iPhone settings, but have found nothing that "automatically add email address to contacts list". 
    Can anyone provide guidance?  Web search has been fruitless ( I am guessing I am not using the right key words for my search).

    Hey jpoolewarren!
    You can delete contacts by following the instructions in this link:
    Contacts at a glance - iPhone
    http://help.apple.com/iphone/7/#/iph3e0ca2db
    Delete a contact.  Go to the contact’s card, then tap Edit. Scroll down, then tap Delete Contact.
    Thanks for being a part of the Apple Support Communities!
    Regards,
    Braden

  • How can I chose and manage the addresses from which my emails are sent?

    My ISP lets me have an infinite choice of addresses by putting whatever I like in front of the @ in my email address.
    I want to use this to create and manage separate accounts for myself, my wife, and two voluntary associations for whom I act as secretary.
    How do I I set this up?
    Thanks in advance.

    Look for Manage Identities in Thunderbird's Account Settings.

  • Customise EOP Spam Notification End-User email address and email content

    Hi
    We are using EOP with our on-premise Exchange 2010 environment. 
    I am rolling out EOP and have the following two (simple) questions, regarding the Spam Notification email that is sent to end-users:
    1. Can we edit the email address that sends the Quarantine notification email? Or must the email come from [email protected]
    2. Can we customise the Quarantine email that is sent to the End-user (with our company logo)?
    From my experience and understanding, I believe the answer for both is NO, but my customer is adamant that editing the email address and customising the email content is possible.. Please advise.
    Thanks
    Ron

    The safelist/blocklist is tied to one email address. However, if you enable email alias consolidation done by LDAP and leveraging off of the Active Directory, then you may be able to achieve what you want.
    The safelist/blocklist comes into play with respect to anti-spam results. The email alias consolidation should occur much earlier.
    So, see if you can get email alias consolidation using LDAP/Active Directory working and it should address the safelist/blocklist thing.

  • Auto prefill of email address

    I recently had a friend of mine change thier email address so I updated my contacts.  However, I notice that when I starte to send them an email the auto prefill gives me the old and new address to choose from.  Is there a way to make the old email go away forever?

    The only way to get rid of that remembered email address when using the mail app - is to restore to factory settings. Unfortunately - Apple has made no provision to let the user delete those old email addresses.
    If you want to be one of the many, many users who have sent feedback to Apple about this feature - or lack thereof - do so here.
    http://www.apple.com/feedback/ipad.html

  • OIM 11g: How to remove rule requiring unique user email addresses

    Use the OIM 11g Administrative and User Console to update a user's email address to be the same as another user's address and on save you get error message:
    "The user with the attribute Email and value [email protected] already exists"
    In OIM 9.1 we used to be allowed duplicate email addresses.
    OIM 11g wants them to be unique (refer OIM 11g User Guide table 11-2 in section "11.2 User Entity Definition" which shows the email attribute properties with unique:yes).
    How do you change this to "unique:no"?
    The OIM 11g Admin Guide section "14 Configuring User Attributes" describes the User.xml file in MDS but doesn't mention unique properties.
    The System Properties accessed via System Management->System Configuration doesn't show anything that looks like an option to enforce email address uniqueness.
    Thanks

    OIM 11g does not allow duplicate email addresses. We asked Oracle about this and they responded that the feature (duplicate email addresses) was "removed from OIM 11g due to sending mail notifications, security and other related
    concerns". We think we can live with this restriction and did not make an enhancement request.
    The user guide does show that email address is unique:
    http://download.oracle.com/docs/cd/E14571_01/doc.1111/e14316/usr_mangmnt.htm#BGBDCDCH
    but there's no way to override the rule.

  • Accessing a user email address from the database

    Hi,
    I really need help with the following.
    I am adding functionality where users can set reminders that will then be sent to them by email when the reminder is due. I am going to utilise dbms_job to do this. My problem is that I am using apex authentication and users for the rest of the application and I need to retrieve the email address from apex. I cannot use wwv_flow_users as the email will be sent from a job in the database therefore there will be no current logged in user / workspace / session.
    There must be some way of accessing an internal apex table / view or something that can tell me what the email addresses of my users are without being signed into an apex session.
    Please help, this is quite urgent.
    Thank you in advance.
    Lee

    Hi,
    Glad to see that you've found.
    However would be very interesting to know how to retrieve user list without being in an Apex workspace.
    i would do as follows:
    When the first user of the day log into apex you could update a static table containig the email (taken select into from www_flow_user once a day).
    Then via a trigger you could start your batch proc, that needs updated email.
    Is not clean at all, but probably if your firm isn't too big this approach could work.
    By the way if you find how to retrieve the email not using www_flow_user, would be very nice to know.
    Message was edited by:
    Marcello Nocito

  • Retrieve Users Email Address from Login

    Hi,
    I'm trying to get the users e-mail address from the login providers (EG. MS, Google, Facebook and Twitter) so that I can insert it into the database on the Mobile Services side. I have gone through various articles about getting their full name etc, but
    there is no mention of email address?
    I need it as I need a way to send emails back to the user. Is this possible and if so how?
    Thanks very much
    Regards,
    Mauro

    This is similar to the blog post Rafal points to but more aggregated. However you might not be able to receive the email as ip's might not provide that info. (Please mark this as aswereed if you find it usefull)
    exports.get = function(request, response) {
    var user = request.user;
    var identities = user.getIdentities();
    var url;
    var req = require('request');
    var provider;
    if (identities.google) {
    provider = "Google";
    var googleAccessToken = identities.google.accessToken;
    url = 'https://www.googleapis.com/oauth2/v1/userinfo?access_token=' + googleAccessToken;
    } else if (identities.facebook) {
    provider = "Facebook";
    var fbAccessToken = identities.facebook.accessToken;
    url = 'https://graph.facebook.com/me?access_token=' + fbAccessToken;
    } else if (identities.microsoft) {
    provider = "Microsoft";
    var liveAccessToken = identities.microsoft.accessToken;
    url = 'https://apis.live.net/v5.0/me/?method=GET&access_token=' + liveAccessToken;
    } else if (identities.twitter) {
    provider = "Twitter";
    var userId = user.userId;
    var twitterId = userId.substring(userId.indexOf(':') + 1);
    url = 'https://api.twitter.com/users/' + twitterId;
    req(url, function (err, resp, body) {
    if (err || resp.statusCode !== 200) {
    console.error('Error sending data to FB Graph API: ', err);
    request.respond(statusCodes.INTERNAL_SERVER_ERROR, body);
    } else {
    try {
    var userData = JSON.parse(body);
    if (identities.google) {
    user = {
    firstname: userData.given_name,
    lastname: userData.family_name,
    gender: userData.gender,
    username:userData.username,
    fullname:userData.name,
    picture:userData.picture
    } else if (identities.facebook) {
    user = {
    firstname: userData.first_name,
    lastname: userData.last_name,
    gender: userData.gender,
    username:userData.username,
    fullname:userData.name,
    picture:userData.picture
    } else if (identities.microsoft) {
    user = {
    firstname: userData.given_name,
    lastname: userData.family_name,
    gender: userData.gender,
    username:userData.username,
    fullname:userData.name,
    picture:userData.picture
    } else if (identities.twitter) {
    user = {
    firstname: userData.given_name,
    lastname: userData.family_name,
    gender: userData.gender,
    username:userData.username,
    fullname:userData.name,
    picture:userData.picture
    else{
    request.respond(statusCodes.INTERNAL_SERVER_ERROR, "Provider not supported");
    response.send(200, user);
    } catch (ex) {
    console.error('Error parsing response from '+provider+':', ex);
    request.respond(statusCodes.INTERNAL_SERVER_ERROR, ex);
    If this answers your question, please use the "Answer" button to say so... Mikael - http://blogical.se/blogs/mikael

  • Realm - get user email address

    I've successfully connected to realm and returned the user groups, now im trying to return some extra details about the user such as their email address.
    I can return the roles of the user by setting
    userRoleName="memberOf"
    and I can get the email address by setting
    userRoleName="mail"
    But I dont seem to be able to return both. Im totally lost on this so any help is much appreciated. All I need is a pointer in the right direction.
    Many Thanks in advance

    no problem :)
                             <Realm className="org.apache.catalina.realm.JNDIRealm" debug="99"
                                  connectionURL="ldap://xxxx/"
                                  connectionName="xxx"
                                  connectionPassword="xxx"
                                  userBase="OU=xxx,DC=xxx,DC=xx,DC=com"
                                  userSearch="(sAMAccountName={0})"
                             userRoleName="memberOf"
                                  roleSubtree ="true"
                                  userSubtree="true"                         
                             />
    Like I said changing the userRoleName="memberOf" line to ="mail" does return the email address of the user instead

  • Programmatically Changing User Email Addresses

    Currently I cant change email address for a user.
    I've moved onto group memberships but if I cant sort this out,
    I'll need to delete the user and recreate each time.
    // Create a hashtable to store options that can be set
    for the new user.
    Hashtable userOptions = new Hashtable();
    userOptions.put(UserManager.HAS_EMAIL , new Boolean
    (true));
    if (aEmail != null)
    userOptions.put(UserManager.EMAIL_ADDRESS, aEmail);
    //Create the user.
    try{
    dUser = usermanager.createUser(aUserid,password,
    userOptions);
    System.out.println("New User Created : " + dUser.getName
    System.out.println(" DistinguishedName = " +
    dUser.getDistinguishedName());
    }catch (IfsException e){
    //create user failed so look up existing user and
    modify it.
    //Fetch the DirectoryUser instance to be deleted.
    duColl = mSession.getDirectoryUserCollection();
    dUser = (DirectoryUser) duColl.getItems(aUserid);
    //dUser.setAdminEnabled(false);
    /**@todo make this work!!!!!! */
    dUser.putProperty
    (UserManager.EMAIL_ADDRESS,AttributeValue.newAttributeValue
    (aEmail));
    System.out.println("Email::"+dUser.getAttribute
    (UserManager.EMAIL_ADDRESS));
         // try to change email though the pup
    PrimaryUserProfile pup=dUser.getPrimaryUserProfile();
    pup.putProperty(UserManager.EMAIL_ADDRESS,
    AttributeValue.newAttributeValue(aEmail));
    System.out.println(UserManager.EMAIL_ADDRESS);
    System.out.println(AttributeValue.newAttributeValue
    ("Modified user : ") + dUser.getName());
    Any ideas?

    Check the table HZ_PARTIES.

  • How can we access the logged in SSO user email address in websheet app

    Is there any way where we can find the email address of the logged in SSO user, do we have any variables which we can use and if so how can we use in our websheet application?
    could any please guide me on this
    thanks
    srinivas p.

    You can't access it directly. But your applet can make net connections to the server, and the server can provide that kind of functionality. Generally this is easiest by making HTTP connections and having the server provide the functionality via the web server. (So in your case, JSPs or servlets on the server would list/deliver/create/modify/delete files, and the applets would invoke those JSPs and servlets.

  • Help! GW altering CC'd external User email address.

    I have external Internet users created per TID 10099059. All that
    works well (we see them in our system book and can email them fine)
    until some one emails an internal user and has one (or more) of the
    users in the external domain CC'd. When the user replies-to-all, the
    external user's name now contains the GW domain and PO in it which, of
    course is invalid and gets bounced.
    Example:
    Object ID tomw
    external GW domain name= ANZ
    external GW po name= NZ
    last name= willow
    Given Name= tom
    internet domain= domain.co.nz
    email address= [email protected]
    When anyone is sent an email with [email protected] cc'd and
    then selects reply to all, his email address is "changed" by GW to
    [email protected] Of course this is promply returned because
    domain.co.nz has no record of [email protected]
    System specs GW 7.02HP running on OES Netware 6.5.6

    On Thu, 09 Jul 2009 18:55:13 GMT, Michael Bell
    <[email protected]> wrote:
    >Jim wrote:
    >> On Thu, 09 Jul 2009 17:29:16 GMT, Michael Bell
    >> <[email protected]> wrote:
    >>
    >>> Jim wrote:
    >>>> On Thu, 09 Jul 2009 15:08:27 GMT, Michael Bell
    >>>> <[email protected]> wrote:
    >>>>
    >>>>> Jim wrote:
    >>>>>> I have external Internet users created per TID 10099059. All that
    >>>>>> works well (we see them in our system book and can email them fine)
    >>>>>> until some one emails an internal user and has one (or more) of the
    >>>>>> users in the external domain CC'd. When the user replies-to-all, the
    >>>>>> external user's name now contains the GW domain and PO in it which, of
    >>>>>> course is invalid and gets bounced.
    >>>>>>
    >>>>>> Example:
    >>>>>> Object ID tomw
    >>>>>> external GW domain name= ANZ
    >>>>>> external GW po name= NZ
    >>>>>> last name= willow
    >>>>>> Given Name= tom
    >>>>>>
    >>>>>> internet domain= domain.co.nz
    >>>>>> email address= [email protected]
    >>>>>>
    >>>>>>
    >>>>>> When anyone is sent an email with [email protected] cc'd and
    >>>>>> then selects reply to all, his email address is "changed" by GW to
    >>>>>>
    >>>>>> [email protected]. Of course this is promply returned because
    >>>>>> domain.co.nz has no record of [email protected].
    >>>>>>
    >>>>>> System specs GW 7.02HP running on OES Netware 6.5.6
    >>>>> Do you have internet addressing enabled? And are using that to define
    >>>>> the internet domain?
    >>>> It is for ourdomain.com but there is not an entry for the
    >>>> domain.co.nz..should it be?
    >>> I mean under the external po.
    >>
    >> Under the External PO--properties--Groupwise--Internet Addressing, I
    >> have the 1st override checkbox checked and the Preferred address set
    >> to: first name.last name@Internet domain name. Also, the end override
    >> Checkbox is checked with the Internet Domain Name set to domain.co.nz.
    >>
    >>
    >Take a look at TID 3230787 which i wrote years ago. Most of it is the
    >same, but let's double check. Also note the workaround listed at the end
    >- instead of internet addressing, an alias can be used, although we try
    >to avoid those these days.
    I followed your tid. I noticed your note at the bottom is the exact
    issue I am having. I believe I have it configured as you say. Is
    there a way I can check the actual config file to make sure the change
    really is there? I would be glad to send a pdf'd screen shot of the
    area. Thanks.

  • SharePoint 2010 - can't configure user email addresses

    Some internal users do not have email addresses in AD. No problem. I created a new site,  assigned those users access permission, but could not find any way in SharePoint to assign them email addresses. (For example, Site Actions> Site Settings>
    click on a user name and .... oops!..... nothing but a Close button appears in the dialog box. I can't edit the user info to assign an email address). How am I supposed to assign them email addresses?
    TIA,
    edm2

    Hi edm,
    Can you please go to Central admin and go to user profile services.
    Find that particular user and set email id properties for that user.Do a full crawl.
    Email id against user will come.
    Regards
    Soni K

Maybe you are looking for

  • Lock and Unlock Consolidation

    Hi guys, I'd like to know how I can lock a consolidation process. I've working with an application which has 2000 as starting year. Since we have modified some rules for 2011, I do not want anyone to run a consolidation with the current rules, since

  • Can this iMovie program do anything at all????

    I am frustrated, I have bunch older iMovie files and none of them can be opened, my USB camcorder can't be recognized by the program, all I see is myself in the little import box looking frustrated, what does this iMoive program do anyway? This is no

  • Language Selection Option - Pages 5.

    Hello!    I am not to convinced about the Language Selection Options on new Pages 5. I do translations and work with different laguages simultaneously. With Pages '09 I had no problem with language. Pages 5 does not automatically detects language, ho

  • Please Suggest - new java.text.DecimalFormat Question

    table2.setValueAt( "$"+new java.text.DecimalFormat("#.##").format     ((Double.valueOf(table2.getValueAt(row,1).toString())).doubleValue())*     ((Double.valueOf(table2.getValueAt(row,2).toString())).doubleValue()) row, 3 );Is there a way to force De

  • Spry image gallery with filmstrip - how to display all thumbnails?

    Hello, I'm using the Spry image gallery with filmstrip and want to be able to show all thumbnails. So instead of scrolling across to see all the thumbnails I would like to display them in a couple of rows. I thought it would be a case of changing the