Assignment and promotion of AD Group

Hello everyone,

Has someone ever automated the assignment of an AD group, and then the promotion of it to primary group?

I'm currently using OneIM 9.1.

Thank you so much for the support,

Lucrezia