Find usergroup via Python, which is assigned via administration manager

Hi All,

I'm experiencing some difficulties when I'd like to know to what administration group an user is a member of.
For example, via tools -> administration manager -> groups and licenses:
Listed are the groups like administrator, everyone, script author, etc. There I've created a new group lets call it 'Group XX'.

I want to know how I can request (in python) to what group a user belongs. I'd like to know this due to some important filter settings (restrictions, etc.).

I'm guessing it's somewhat the same as a username.
(example: 
from System.Threading import Thread
print Thread.CurrentPrincipal.Identity.Name )

Hoping someone can help me out here!

Sincerely,

Maarten

(1) Answer

Login