Accessing mobile user registration details using XPath

Can someone guide me on how I can use xpath in my app to access details
like first name and last name of the currently logged-in user? I have seen
this line of code which gives me access to the "username" of the currently
logged-in user: instance('commcaresession')/session/context/username

Is there something similar to access other user registration details like
we can with the username? Any documentation about such kind of things?

Thanks,
Chaiwa.

Hi Chalwa

You can access other information. This page on the wiki should help:
https://confluence.dimagi.com/display/commcarepublic/Custom+User+Data

ยทยทยท On 29 April 2016 at 10:25, Chaiwa Berian wrote:

Can someone guide me on how I can use xpath in my app to access details
like first name and last name of the currently logged-in user? I have seen
this line of code which gives me access to the "username" of the currently
logged-in user: instance('commcaresession')/session/context/username

Is there something similar to access other user registration details like
we can with the username? Any documentation about such kind of things?

Thanks,
Chaiwa.

--
You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Simon Kelly
Senior Engineer | Dimagi South Africa