We are using a Python Script to create Sub-Tenants automatically and can already create anything we need with calls through the Morpheus API. So we call “Create role”, “Create a Tenant”, “Create a User for a Tenant” and “Create a Group for a Subtenant” and that results in a perfect new Tenant setup.
While using “Create role” we need to set “Multitenant Role” to one of two roles we create (that is, we create a specific Tenant Admin Role and a Tenant Admin User Role for this specific Tenant, and the later role needs to be set to “Multitenant Role” in our eyes to get the Role into the newly created Tenant).
Unfortunately, with this setting the Multitenant Role will be populated in every Tenant and not only the newly created. Okay, this works as designed … since this is a Multitenant Role. But we would like to have only the specific Roles at the specific Tenants, hence we need to delete the newly created Role in all Tenants but the newly created.
Since we would like to automate that in the same Python Script we use, we are missing the Morpheus API call “Delete a Role for a Tenant”. Is this intentional - is there any reason not to be able to delete specific roles within a Sub-Tenant from the Master Tenant automatically through the Morpheus API? Or is there a way to do that and we only do not see it? Any help would be appreciated.