cancel
Showing results for 
Search instead for 
Did you mean: 

Stroing logged in user information in database from MDK application

apoorv_bhargava2
Employee
Employee
0 Kudos

Hi,

We are developing an MDK app with odata services implemented using CAP.

we have a use case that we need to store logged in user's info in the data base

can you please guide what will be the correct way of handling this

Option 1 - Capture use info from MDK app code and then push to ODATA service as request input

Option 2 - Capture user info at the odata service side using CAP libraries which read the user info from the context

if yes , how do we set up for option no 2 . is it supported?

Thanks

Apoorv

bill_froelich
Product and Topic Expert
Product and Topic Expert

I added the CAP tag to your question as Option 2 is specific to CAP handling so hopefully this will increase the visibility

bill_froelich
Product and Topic Expert
Product and Topic Expert

Apoorv,

Can you elaborate on what you mean when you say store the logged in user's info in the database? Are you trying to track things like last updated by? or is it more of a one time storage?

--Bill

apoorv_bhargava2
Employee
Employee
0 Kudos

Thanks Bill for response.

Yes we want to save the logged in user info when use logs .

in addition we will also have a use of capturing last changed by

I am aware how in general a cap based service will capture user info (referring CAP document)

but need guidance on MDK based applciation

Best Regards,

Apoorv

former_member742924
Discoverer
0 Kudos

Hi Bill,

We are trying to store user data , like user name , mail id , last logged in etc these kind of data in our db by either means of MDK of by CAP services.

Thanks

Abhishek

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

apoorv.bhargava2

Were you able to resolve your issue? If so, could you post an answer so others might benefit from your findings and then close this discussion?

Regards,
Jitendra (SAP Community Moderator)

Accepted Solutions (0)

Answers (0)