salesforce / terraform-provider-anypoint

The official Terraform Provider for Mulesoft Anypoint Platform
https://registry.terraform.io/providers/mulesoft-anypoint/anypoint/latest/docs
MIT License
21 stars 17 forks source link

Unable to create BG using connected app #87

Open anbakri opened 5 months ago

anbakri commented 5 months ago

Unable to Create Business Group Using Connected App

Description: I'm unable to create a Business Group (BG) using a connected app on behalf of the owner of the root org. However, I can create a BG using the username/password of the owner of the root org, but only when MFA is disabled.

Provider Version: 1.6.0

Steps to Reproduce:

  1. Attempt to create a BG using a connected app on behalf of the root org owner.
  2. Observe failure.
  3. Disable MFA.
  4. Attempt to create a BG using the username/password of the root org owner.
  5. Observe success.

Expected Behavior: Should be able to create a BG using a connected app on behalf of the root org owner.

Actual Behavior: Creating a BG fails when using a connected app but succeeds with username/password only when MFA is disabled.

Error Log: anypoint_bg.bgs: Creating... ╷ │ Error: Unable to Create Business Group │ │ with anypoint_bg.bgs, │ on main.tf line 25, in resource "anypoint_bg" "bgs": │ 25: resource "anypoint_bg" "bgs" { │ │ Only an admin of the parent sub organization can update the entitlements ╵

soufi commented 2 months ago

This is not an issue with the provider but rather with authorizations in Anypoint Platform. Please contact Mulesoft support for this.