Get list of Users that are using Native App

0
Hi, Does anyone know if there is a way to get a list of users that are using your native app? We previously had a Hybrid App and have since converted it to a Native App so we have a list of Users but have no idea of differentiating which users are using the Hybrid App or the Native App. Any help or advice would be much appreciated. Thank you! Regards Kevin
asked
5 answers
3

Hey , 

As you know we use a custom nanoflow for user login in native application. So after a successful  signin you can pass the username to a microflow inside which create a log associating the user object. This will help you to retreive the list of users easily. You can do the vice vera of removing the association from the log entity upon logout. 

 

Or , Maintain a boolean in account entity which you can update for every login/logout operation from native application using a microflow. This will also give you the ability to control the user to use only one device.

 



Note: You have to maintain this log by using only the microflow else the data will not be updated in the cloud. 

answered
1

You could just add custom logging to your native app that logs which user uses the app. When they sign in for example. 

 

answered
1

I dont think its available out of the box. 

But probably, you could program something:

- When user log in, use $currentDeviceType to identify the device and update the user usage information 

- Based on this, you will can try to generate the report what so ever.

answered
1

Hi,

Usually to get the list of active users,you can write java action using Core.getActiveSessions method from core module, so do some workaround in the java action to display the active users using profile type related methods.

answered
1

Thanks for the suggestions guys! I just added a new boolean attribute that gets changed for when it is a native user every time the user signs in. Really appreciate the suggestions from everyone :D

answered