Hello,
I enable custom module non mint company for creating companies. As an administrator, I can create companies,invite users.
As a user , I can join the company and view the related apps etc.
But I require the following.
1. As an admin , I want to make the user as company administrator and he should manage his own company(like sending invites etc) . I tried giving company administrator role to the user but he cannot send invites
On the same note, how can we delete a company in non mint company module.(as an admin).
Please suggest.
Thanks,
Venkat
You'll need to create a custom module for these functions. To create a company with a specific owner (not the current user), you can implement a hook_form_alter() on the company creation form. Add a custom submit hook, and there you can modify the company owner before the API call is made to Edge to create the company.
To be able to delete a company, you'll need a custom module that makes the delete API call for you. Either a page that lists all companies and provides a clickable delete link for each, or just a form that takes a company name and a form submit.
Check out https://apidocs.apigee.com/management/apis/post/organizations/%7Borg_name%7D/companies and https://apidocs.apigee.com/management/apis/delete/organizations/%7Borg_name%7D/companies/%7Bcompany_...