cancel
Showing results for 
Search instead for 
Did you mean: 

SF Odata to retrieve current logged in user in browser

former_member182468
Contributor
0 Kudos

Dear Experts,

We are trying to retrieve current logged in user in Successfactors instance from Odata call.

We are able to get the user details by odata call and  passing the username ( admin)  as below -

var service_url= "https://<datacenter>.successfactors.com/odata/v2/User(%27admin%27)/?$format=json";

oModel.loadData(service_url,null,false, "GET", false, false, null);

var username = oModel.getData().d.username;

But we would like to read the logged in user and use in the code above . So that we can get user details for every logged in user and not a particular user ex - admin.

Any inputs are greatly appreciated .

Thanks,
Sahiba Gandhi

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member182468
Contributor
0 Kudos

Not yet ! The only solution we found is through SFSF extensions through HCP.

0 Kudos

Hello sahiba can you provide me how you implement this solution through HCP?

annedlr
Explorer
0 Kudos

Hi,

I also have the same requirement, did you manage to find a workaround?

Thanks

Anne

Former Member
0 Kudos

It would definitely NOT a single user, you may have list of users logged in ..Just other work around for your requirement , SF have a log in report achieve this.

Thanks

Nag

former_member182468
Contributor
0 Kudos

Hi,

Could you please provide more details on the SF log in report and how to get the results on that .

Thanks,
Sahiba

Former Member
0 Kudos

Please see the below Image for login report navigation, hope your success factors instance have Analytics enabled.

Thanks

Nag