How to show users display name and email address in open social widget?

Hello experts,
Is it possible to retrieve users display name and email address with opensocial javascript e.g. Login widget seems to load user data (and userData.firstname) during the site init. Is this something that could be consumed or is there some opensocial data request that could/should be used. Any working sample widget spec would be appreciated.
Best regards,
Ville

Hi Ville,
in the logon widget, we also use the data retrevied from siteInit.loadData.data.user. However, this widget is part of the out of the box openSocial widgets, it is being released with the product code, not as a separate OS widget deployed on HANA Cloud Platform.
If you'll do window.parent.siteInit you'll probably will get the data you are looking for, but this isn't the official public API, so you can use it but we cannot commit on keeping this structure.
Why do you need this information in the widget level? Does your widget require authentication or is it for personalization needs?
The best way is to retrieve this info on the java side using HAHA Cloud Platform APIs and send them back to the client.
Look at this - SAP HANA Cloud Platform SDK >
Package com.sap.security.um.user
Interface:
User
This interface provides read access to user data and is an extension of Principal.
UserAttribute
The interface represents abstraction over a user general attribute, such as an e-mail address.
UserProvider
This interface represents the service interface which provides read access to a user implementation.
Inbal 

Similar Messages

  • SharePoint 2010 Web Analytics showing user Display Name and Account Name from the same user

    Hi!
    Since July, 16th 2012 the Web Analytics Daily Unique Visitors reports started to show almost the double of visitors we used to have on our Web Application. Here are some of the data (I intentionally deleted the weekend data):
    10/7/2012 2.497
    11/7/2012 2.723
    12/7/2012 2.722
    13/7/2012 2.699
    16/7/2012 5.055
    17/7/2012 4.963
    18/7/2012 4.954
    19/7/2012 4.998
    20/7/2012 4.965
    23/7/2012 5.117
    24/7/2012 5.012
    25/7/2012 5.071
    As you may notice the data jumped from around 2.700 unique visitors to around 5.000 unique visitors. As the number of permissioned users remains constant it is pretty odd. I also checked the Number of Page Views report and see no change on its behavior.
    The number of page views remained constant.
    So I went to look the Top Visitors report and understand why the visitors number almost doubled. The analytics started to count the users Display Name and Account name as two different visitors with a different number of page views. Let me show you an example
    from yesterday (July, 25th) Top Visitors report:
    #     Visitor                  Page Views    %
    1    Cinthia XXXXXXXXXX    359        0,55%
    5    Giselle XXXXXXXXXX     143        0,22%
    7    Aline XXXXXXXXXX       138        0,21%
    15  nt\cmazevedo              111        0,17%
    60  nt\gbsantana                 69        0,11%
    73  nt\aglsiqueira                 65        0,10%
    "Cinthia" and the account "nt\cmazevedo" are the same person. The same is applied to "Giselle" / "nt\gbsantana" and "Aline" / "nt\aglsiqueira".
    As I stated this is an example from July, 25th. If I checked the same report from a period before July, 16th I can only see the users Display Name as "Visitors". No account name is displayed or counted as a different visitor.
    About the environment:
    We have two SharePoint 2010 farms: a "corporate" and a "enterprise". The corporate farm contains four web servers and a central administration servers with publishing services. The enterprise farm contains two servers running User Profile Services, Search
    Services and some others. Our main version is the SP1 with June/2011 Cumulative Update with a few more hotfixes applied.
    This behavior on analytics is affecting all web applications (we have more than 20) installed on this farm and my company Support team said that no change were made on SharePoint on the weekend the problem started.
    Does anyone have any tip about what is going on?
    Thanks in advance!

    Hi, Manas!
    First of all thanks for your interest on this issue but I don't think it is related to the User Profile or the Active Directory.
    I checked both records and there was no change on the Display Names. All the users have "full names" as display names (first + middle + last name) and not logins as SharePoint is displaying on this report.
    But I did a test yesterday and checked the results today confirming that just the access been made using a specific server are causing this. Explaining it better:
    I have four web servers on my farm named from P01 to P04. Then I created this test script:
    Step 1: Change local HOSTS file to point the web application on the server P01.
    Step 2: Access site "A"
    Step 3: Access site "B"
    Step 4: Close the browser.
    Step 1: Change local HOSTS file to point the web application on the server P02.
    Step 2: Access site "C"
    Step 3: Access site "D"
    Step 4: Close the browser.
    Step 1: Change local HOSTS file to point the web application on the server P03.
    Step 2: Access site "E"
    Step 3: Access site "F"
    Step 4: Close the browser.
    Step 1: Change local HOSTS file to point the web application on the server P04.
    Step 2: Access site "G"
    Step 3: Access site "H"
    Step 4: Close the browser.
    I asked three users to execute that script. The results: All access to the sites "C" and "D" were registered on Web Analytics with the user account name such as "nt\cmazevedo". All the other sites registered the user Display Name correctly such as "Cinthia
    XXXXXXXXXX".
    With this test we could isolate the problem just on the server P02. It doesn't occur on the others. Now my support team is trying to find any configuration difference between this server and the other three that could point for the root cause.
    I am also looking for some information regarding the service responsible for this task ("transform the account name into a display name") to understand why it doesn't work on one server and works on the others.
    Thanks!

  • How do I set Mail to display Name AND email address in the message

    I thought I used to have this setting and now I cannot find it (if there is one)
    Can't I set mail to show Name and email address in the address box both when creating a message and viewing one?
    thanks,
    tom

    Thanks, Ernie
    I wasted about 20 minutes looking for it and couldn't find it
    cheers,
    tom

  • How to get User's Name and Email to use in an InfoPath Form?

    Hey guys,
    I created a form that MUST have the user filling it out and his/her email in it, but I don't want the user to type it, instead I'd like the form to get it from Office 365 AD, since this form is in Sharepoint Online via Office 365.
    How can I do that?
    Thanks.

    I tried it, but the closest it got was showing the user's Group, not name and definitely no email, I don't know if this is because it's SharePoint Online and not OnSite and I don't know if UserProfileService is available there, I did not see it in the Site
    Collection Features to enable it.
    Any other idea/solution? without this info my form will not work.
    Thanks.

  • How can I send an email to a group in my address book, but hide the individual names and email addresses?

    how can I send an email to a group in my address book, but hide the individual names and email addresses?

    You used to be able to do this through leaving unchecked the box in preferences "when sending to a group show all member addresses". However, that feature failed some time ago (two or three years?) and the only way to hide the addresses now is to put the group in the BCC field.

  • How to email a list of names and email addresses?

    I have a group of about 60 people with various amounts of data in each of their Address records.
    I want to send an email to the group with a list of the names and email addresses of everyone on the list. I don't know how to do this neatly. Got any ideas?
    If I put the group name in "to" in Mail, each person gets a messy non-alphabetical list with commas. If I send a group vCard, I send more data than I want to send. If I make a printed list, I have to convert to a pdf file and send that which is not nearly a simple as a text list.
    Is there any way to export fields of my choice from Address into either text or spreadsheet format?
    I want to send a list like this, but with tabbed columns.
    Steve Jobs [email protected]
    Barack Obama [email protected]
    yourname1 yourname2 [email protected]
    Thanks,
    Phil

    Thanks, Thomas for the prompt response, but the pdf method has two problems.
    First, it's got to be in landscape mode, or the email address word-wrap. That makes for a five-page list. I want to send a 60-line text list.
    Secondly, there's no way to eliminate the label (work, home, other...) from the email address field.
    I will use the pdf method if no one comes up with a better idea.

  • How do i fix the "web form must capture customer name and email address" error?

    Hi all,
    I have a webform that is submitting securely to the bc servers. I get the response:
    {"SystemMessage": { "success": False, "message": "ERROR: An error occurred. Your web form must capture customer name and email address. Please fix this issue and re-insert your web form on your web page." }}
    I have verified that the "FirstName","LastName","EmailAddress" are actually gettting sent with their corresponding values. I can't seem to figure out why i keep getting this error. Can someone please lend a helping hand?!? Thanks guys... here's my code:
    var rAction = 'https://site.worldsecuresystems.com/FormProcessv2.aspx?WebFormID=85886&OID={module_oid}&OTYPE={module_otype}&EID={module_eid}&CID={module_cid}&CC={module_urlcountryc ode}&Referrer={module_siteurl,true,true}&JSON=1';
    var rData = 'FirstName='+escape(fName.val())+'&LastName='+escape(lName.val())+'&EmailAddress='+escape (email.val())+'&Username='+escape(username.val())+'&Password='+escape(passwd.val())+'&Pass wordConfirm='+escape(passwd2.val())+'&BillingAddress='+escape(baddress.val())+'&BillingCit y='+escape(bcity.val())+'&BillingState='+escape(bstate.val())+'&BillingZip='+escape(bzip.v al())+'&PaymentMethodType='+escape(paymentMethodType)+'&CardName='+escape(cName.val())+'&C ardNumber='+escape(cNum.val())+'&CardExpiryMonth='+escape(expMonth)+'&CardExpiryYear='+esc ape(expYear)+'&CardType='+escape(cType)+'&CardCCV='+escape(ccv.val())
    $.ajax({
    type: 'POST',
    url: rAction,
    data: rData,
    success: function(msg){
    console.log('success');
    $('#result').html(msg);
    error: function(msg){
    console.log('error');
    $('#result').html(msg);

    Ok -- after testing this out a little on my own I think it must have to do with not properly serialzing the data you are passing in the ajax function.  In the example I linked to earlier they are just serialzing the form data and it works because it converts the data in the form's input fields to URL encoded notation.
    If you aren't using an actual form on your site to mimick the example I linked to then when building your "rData" string instead of using the "escape" function for each of the parameter values, you should be using the "encodeURIComponent" function instead which instead of escaping characters will convert it to URL encoded notation.  That's probably your issue. Here's more about encodeURIComponent(): http://www.w3schools.com/jsref/jsref_encodeURIComponent.asp
    Try this with the rData variable instead:
    var rData = 'FirstName='+encodeURIComponent(fName.val())+'&LastName='+encodeURIComponent(lName.val()) +'&EmailAddress='+encodeURIComponent(email.val())+'&Username='+encodeURIComponent(username .val())+'&Password='+encodeURIComponent(passwd.val())+'&PasswordConfirm='+encodeURICompone nt(passwd2.val())+'&BillingAddress='+encodeURIComponent(baddress.val())+'&BillingCity='+en codeURIComponent(bcity.val())+'&BillingState='+encodeURIComponent(bstate.val())+'&BillingZ ip='+encodeURIComponent(bzip.val())+'&PaymentMethodType='+encodeURIComponent(paymentMethod Type)+'&CardName='+encodeURIComponent(cName.val())+'&CardNumber='+encodeURIComponent(cNum. val())+'&CardExpiryMonth='+encodeURIComponent(expMonth)+'&CardExpiryYear='+encodeURICompon ent(expYear)+'&CardType='+encodeURIComponent(cType)+'&CardCCV='+encodeURIComponent(ccv.val ())

  • Importing a group of names and email addresses from EXCEL to address book

    I want to create a new group in my address book, so I can send one email to multiple addresses. I have an EXCEL document that contains the names and email addresses. Is there an easy way to import them into my address book from EXCEL?
    Thanks, Teri

    Hi,
    I'm having the same problem. I'm trying to import 300 addresses from an Excel file into Address Book. The Excel file has been converted to tab-delimited (txt). I've gone through and deleted any extra line breaks within fields, commas, etc in the addresses.
    When I go to Address Book and ask it to import the Text file, I get the dialog window showing me the fields it will import, but when I click on "OK", the program just freezes. Also, it tells me in the dialog window that it won't import specific fields like Street 2, City, State or Zip and there is information in all of those fields for every record to import.
    I've been working on this for three weeks now and am at my wits end. I have never had a database program be so difficult to work with.
    Any ideas?

  • I created a Group and put in all names and email addresses but cannot get the group to appear in an outgoing email message.  What am I doing wrong?

    I created a Group and put in all names and email addresses but cannot get the group to appear in an outgoing email message.  What am I doing wrong?

    This may help.
    Can't connect to the iTunes Store
    What happens whenyou try to connect? Error messages?

  • Script to extract names and email addresses of all recipients of an email

    Hi,
    I have found some scripts which extract email addresses from the content of messages in Mail, but I am looking for something rather different, and wonder if such a script exists, or if someone can help me build one.  I would like to create a tab delimited text file of the first name, last name and email address of all recipients of a given message in Mail.  Most email addresses will be in the format John Doe <[email protected]>.
    Thanks,
    Nick

    Hi,
    nick_harambee wrote:
    I have one outstanding issue, which wasn't included in the original question.  Sometimes email addresses are included in the Name of the recipient, i.e. instead of 'John Doe', it reads 'John Doe ([email protected])'.  Could you script be adapted to delete any block of text (i.e. space delimited) that includes the @ symbol, so that 'John Doe ([email protected])' would return:
    John<tab>Doe<tab>[email protected]
    Use this handler:
    on splitName(t)
        if "@" is in t then -- to remove the address after the name
            set n to -3
        else
            set n to -2 -- normal name
        end if
        set tid to text item delimiters
        set text item delimiters to space
        set l to text items of t
        if (count l) = 1 then -- no space 
            set r to tab & t & tab -- last name only 
        else
            tell l to set r to "" & (items 1 thru n) & tab & (item (n + 1)) & tab
        end if
        set text item delimiters to tid
        return r
    end splitName

  • ERROR: Your web form must capture customer name and email address.

    Hi,
    I keep receiving this error message when trying to checkout and submit a payment.
    ERROR: An error occurred. Your web form must capture customer name and email address. Please fix this issue and re-insert your web form on your web page.
    The strange thing is it's only happening in chrome. It works perfectly in IE and firefox, the form submits and takes me to the order confirmation page. I've tested it on multiple PCs so it's definitely a chrome issue. Does anyone have any advice as to what could be causing this issue with chrome?
    Thanks,
    Pete

    Check your eCommerce web form in the admin has the ID - 211729
    This is what the form ID is, if you have deleted it and made a new one it will not Marry up
    The things you normally look for with this error is The first name and last name along with email fields have the right ID and name parameters on the input. The javascript is picking those up so it looks like that is working.
    So next is the form in the admin marrying up with the form on the page or in this case the Registration Buy layout.

  • HT2486 HOw do I transfer contact numbers and email address from my Mac to my new iphone?

    How do I transfer contact numbers and email address from my Mac to my new iphone?

    Connect your iPhone 4S to your Mac using the iPhone’s USB cable, and then use iTunes to transfer your contacts from to the iPhone. (An alternate way is to use iCloud.)
    I’m not sure what you mean by “transferring email address” from the Mac to the iPhone. But if you mean you want to access your email from the Mac and the iPhone, the best way is to configure your email account over IMAP in Mail on both devices.

  • How to find out the user name and email address from SAP user id?

    Hi experts,
    In sto3n I find out the the user id with most navigations. I like to know his name or email address to contact him. Which table stores the user details? how to do it?
    Thanks in advance.
    Sharat.

    hi,
    The below tables will give only the name .
    USER_ADDRS
    USER_ADDR
    USER_ADDRP
    USR02
    i think you need email address .
    you can use this Tcode : su01d
    and give the user name and excute it
    i hope it will help you.
    Ram
    Edited by: Ram velanati on Jun 30, 2008 6:57 PM

  • How do I create a second account with my husband's name and email address?

    My account works fine. I read about Profile Manager, but couldn't find it. I can find Account 1 with my name. I see Account 2 listed, but no name or email address even though I typed that information into some form along the way.

    Assuming that you are happy to share Thunderbird, and be able to see each others' messages, then there's no need for the profile manager.
    If you want to keep things separate, then it's better to set up separate user accounts in the operating system. Each of you would then have your own private space for data and settings, including each having your own Thunderbird profile.
    So, your husband already has his own distinct email address and account, set up with an email provider?
    In Thunderbird, you'd use '''File|New|Existing Mail Account…''' (in the traditional menu) or '''[≡]|New Message|Existing Mail Account…''' (with the Application Menu button) to add his account to Thunderbird. I think you may have already done this given that you say you have entered the email address (and its password?) already.
    I think at this point a screenshot of Thunderbird may help us understand what you do and do not see.
    https://support.mozilla.org/en-US/kb/how-do-i-create-screenshot-my-problem
    Use Paint or similar to blot out any data you'd prefer not to share.

  • Show user´s name and lastname using XML Form Builder

    Hello
    I created a XML project with XML Form Builder and i have to show user´s name an lastname in RenderListItem form.Can anybody help me,please? Thanks

    Hi Unai,
    check out the description by Patricio in this thread:
    https://forums.sdn.sap.com/click.jspa?searchID=78716&messageID=1616027
    Hope this helps,
    Robert

Maybe you are looking for