Skip to main content

group_users

Creates, updates, deletes, gets or lists a group_users resource.

Overview

Namegroup_users
TypeResource
Idazure.api_management.group_users

Fields

NameDatatypeDescription
propertiesobjectUser profile.

Methods

NameAccessible byRequired ParamsDescription
listSELECTgroupId, resourceGroupName, serviceName, subscriptionIdLists a collection of user entities associated with the group.
createINSERTgroupId, resourceGroupName, serviceName, subscriptionId, userIdAdd existing user to existing group
deleteDELETEgroupId, resourceGroupName, serviceName, subscriptionId, userIdRemove existing user from existing group.

SELECT examples

Lists a collection of user entities associated with the group.

SELECT
properties
FROM azure.api_management.group_users
WHERE groupId = '{{ groupId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new group_users resource.

/*+ create */
INSERT INTO azure.api_management.group_users (
groupId,
resourceGroupName,
serviceName,
subscriptionId,
userId
)
SELECT
'{{ groupId }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ userId }}'
;

DELETE example

Deletes the specified group_users resource.

/*+ delete */
DELETE FROM azure.api_management.group_users
WHERE groupId = '{{ groupId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND userId = '{{ userId }}';