Get current logged in user name

What platforms are you using for Couchbase Lite? If you must know the username of the current user, have you considered implementing the implicit flow instead ?
This forum post may also be relevant to you - CBL database name
Also, if you can elaborate a bit more on what you want to accomplish, we could see if we can do it with just the user Id