Want to Use the OrganizationsManager Node SDK in Actions

I am interested in using the OrganizationsManager in the node SDK, but I am unsure how to instantiate it in my Actions code. Can anyone advise?

I should note I am using the ManagementClient without any problems.

Thanks for your advice.

Well … I answered my own question after a little research. The OrganizationsManager is already invoked in the ManagementClient.

const management = new ManagementClient({
domain: api_domain,
clientId: api_client_id,
clientSecret: api_client_secret

instantiates it because it has a line:

organizations = new OrganizationsManager();

You can simply write:



management.organizations.addMembers({id: “org_id”}, {members: [array_of_user_ids]});