cancel
Showing results for 
Search instead for 
Did you mean: 

Fiori for IOS user profile

pavlo_denysyuk
Participant
377

Hi experts,

Please guide on how to get SAP user name and profile picture in fiori for IOS SDK. The app knows only about SAP ID for now.

Thanks in advance.

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Hi Pavlo,

assuming you want to read the cloud platform user profile, you can find the answer in this great blog post: https://blogs.sap.com/2017/03/23/using-the-sap-cloud-platform-userapi-in-mobile-services-development...

You can read full name and email address of the authenticated user, I'm not sure about the picture though. You may need to do some additional configuration if you use IdP - as the documentation suggests.

Cheers!

Qualiture
Active Contributor
0 Kudos

Hi Pavlo,

I assume you want the SAP user / profile image from an ECC system? I think you should approach it the same way as were you to display it in a Fiori / SAPUI5 application: expose a BAPI which holds this info as an OData service and consume that in your app.

I'm not sure if you could setup your cloud platform with an ABAP IdM user store, and (probably) retrieve the user profile including profile image from there as well, but maybe someone else could shed a light on that

pavlo_denysyuk
Participant
0 Kudos

Hi Robin, thanks for response.

We have sth different than getting image from ECC. We are using SAP IdP, so We got logged with SAP users (C,S,I...). As far as I understand there should be a way to get user photo from SAP IdP ( the one we see on sap.com on the right top ). Also We do need user full name.

Please guide on how to get user profile info from SAP IdP.

Thanks in advance )

Qualiture
Active Contributor
0 Kudos

Hi Pavlo,

I have no deep experience with SAP IdM REST API's, but a quick search gave me this: https://help.sap.com/viewer/4773a9ae1296411a9d5c24873a8d418c/8.0/en-US/d82bb86eed794ff9873e90772193c...

Most notably Request Example 3 / Request Example 4 from that page