You can enable ilias soap administration under Administration -> General Settings -> Server -> Soap subtab.
![5b653eb98017c175f93a64c65943b87d.png]()
With this enabled you can now hit the ilias SOAP server, you can find a list of functions at webservice/soap/server.php
The function you'd probably be looking for is searchUser and then a foreach loop through to lookup what each role is tied to.
https://gist.github.com/CrawdadWarden/746fc6346ed6386408444768f6f2506c
Any specific questions once you get it enabled let me know!

With this enabled you can now hit the ilias SOAP server, you can find a list of functions at webservice/soap/server.php
The function you'd probably be looking for is searchUser and then a foreach loop through to lookup what each role is tied to.
https://gist.github.com/CrawdadWarden/746fc6346ed6386408444768f6f2506c
Any specific questions once you get it enabled let me know!