Azure API Management Group User

This page shows how to write Terraform and Azure Resource Manager for API Management Group User and write them securely.

azurerm_api_management_group_user (Terraform)

The Group User in API Management can be configured in Terraform with the resource name azurerm_api_management_group_user. The following sections describe 3 examples of how to use the resource and its parameters.

Example Usage from GitHub

main.tf#L7
resource "azurerm_api_management_group_user" "this" {
  api_management_name = var.api_management_name
  group_name          = var.group_name
  resource_group_name = var.resource_group_name
  user_id             = var.user_id

portal-users.tf#L23
resource "azurerm_api_management_group_user" "group_user" {
  for_each = { for apim_group_users in var.apim_group_users : apim_group_users.user_id => apim_group_users }
  api_management_name = var.apim_name
  resource_group_name = var.apim_resource_group
  user_id             = each.value.user_id
  group_name          = each.value.group_name
main.tf#L7
resource "azurerm_api_management_group_user" "this" {
  api_management_name = var.api_management_name
  group_name          = var.group_name
  resource_group_name = var.resource_group_name
  user_id             = var.user_id

Review your Terraform file for Azure best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Explanation in Terraform Registry

Manages an API Management User Assignment to a Group.

Microsoft.ApiManagement/service/groups/users (Azure Resource Manager)

The service/groups/users in Microsoft.ApiManagement can be configured in Azure Resource Manager with the resource name Microsoft.ApiManagement/service/groups/users. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Parameters

  • apiVersion required - string
  • name required - string

    User identifier. Must be unique in the current API Management service instance.

  • type required - string

Frequently asked questions

What is Azure API Management Group User?

Azure API Management Group User is a resource for API Management of Microsoft Azure. Settings can be wrote in Terraform.

Where can I find the example code for the Azure API Management Group User?

For Terraform, the kevinhead/azurerm, JoeAtRest/terraform-azurerm-apim-api and niveklabs/azurerm source code examples are useful. See the Terraform Example section for further details.