security login by method

HJK wrote earlier

Yes I know, but we always built ouer own acces to all ouer solutions. Why? In practice, a lot of ouer users (customers) do not have the knowledge to administrate such a kind of login-structure. (some of them, can’t even read English!) So we build ouer own (simple) system, where a super-user can add another (new) user to the system and put this user in a categorie.
Categories are: Super-User, User (can’t delete records), Editer (can’t delete or create records, only edit) Guest (can only view data)
So the customer can simple administrate the solution.
My next question is: Can I automate the login (I mean the already built-in login) bij methods??
We do this in Filemaker, with a special plugin. DIALOGFM

Did get any answer yet! is it possible?

Or is it possible to set the current Username by a method?

It is planned to add 2 things:
-a user_administrator , which can only add/remove users (in groups), and not do anything else in security dialog
-a security JavaScript object, with the following methods:
security.getUserName()
security.getUserID()

So it is not yet possible…

security.getUserName()
security.getUserID()

What does these funtions do exactly?
Can you ask the username or can you set the username with your own value?

Asking can already be done, am I right?
What is the difference between the already presence of: getUsername?

I hope I can set the Username (from my own userdatabase) than I can use this name by all my creator and/or modifier fields.