In my Custom Authentication plugin, all users get created in the default all users group. I am exploring the option of implementing and maintaining the users / groups structure in TeamCity as they appear in my source system.
The best option is probably to use UserGroupManager class for creating, deleting and updating users and groups but how to get an instance of the class in first place? Trying to include all the beans from Spring.jar xml along in my plugin beans file is not helping as I end up with the following error: Error creating bean with name 'loginConfiguration': Requested bean is currently in creation:...
Can't I somehow access the instance that already gets created as the server loads.
Else, should I be writing a separate plugin for this ... but then of which type? And still how will the object be instantiated?
(PS: the UserGroupManager class will be used with the caveat that its interfaces can get changed in future releases but for now it solves my problem)