As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
The username is stored in request.body.username
and is also given by calling modules.backendContext.getAuthenticatedUsername().
"user" though is the only collection that doesn't use "_id" as default key, but "username".
This makes it a bit hard to standardize functions and I often have to write selections statements like "if(obj._id) ... else if (obj.username) ..."
Would it be possible to get the user "_id" rather than the username only?
I proposed request.body.userid or getAuthenticatedUserID() just so have something similar to what already exists, but it could also be something else :wink:
Otherwise, is there already a way to get the user id without querying the "user" collection?
Thank you :)