However that JSON file does not specify which user is signed in. It only shows an id called 'host' from which I don't know how to derive the actual user. I would like to have an email address if that is possible.
Does anyone know how to get this information?
I would like to add that I already have a candidate user and I can access all his/her data through the web API. This makes the case a bit simpler as I only want to know if my candidate user is also signed in into the desktop app. If not, I don't care who is signed in.
Thank you for your reply. I'm really looking for an approach that can be done by code, so your suggestion would be pretty difficult.
The best idea I can currently think of is to use the local root folder (as shown in the article I added) and start comparing the local folder/file structure with the online folder structure through the web API.
This is not waterproof or efficient, but I guess it would work in most cases.
If anyone has a cleaner way to find the signed in user, I would love to hear it.
Re: How to programatically find the signed user of the desktop app
Sorry that I couldn't be of much assistance with this.
If you happen to be using a Business subscription, each member would have a personal folder within their Dropbox folder with their name on it. Perhaps the name shown on the personal folder will make it easier to identify the user.
I hope this helps!
EDIT: Perhaps you could try what is mentioned here if it's applicable.