How to create / adjust user per script

How to create / adjust user per script

Our environment

Version: 13.0 Build 13011
DB: Extern MSSQL

How can I build a custom function to create or adjust a user in one step?

I get a lot of requests like: make user x, y a technician and give it permissons like user z.

I want to build a custom function that would show a dialog in which I can

  1. paste the id of the reference user z
  2. paste the ids of the users to be turned into technicians and whose profiles need to match that of user z

Has someone done it before? If not, where do I start?

                New to ADManager Plus?

                  New to ADSelfService Plus?