How to extract user info in custom workflow analyzer

We are custom producing a workflow analyzer.

How can I get user information logged into the studio?
I’m building a DLL, but I don’t know how to get user information yet.

a debatable option:
Environment.UserName

I would like to obtain information during the process of creating custom rules for the workflow analyzer, rather than from within UiPathStudio.

That is, code level…

Shouldn’t Environment.UserName be the user logged into the studio?

we do feel from feedback

vs

feel free to elaborate more about it, when the question is not picked up by members

You can see what I am doing at the link below.

This confirms our understanding, what we had.