Share via

APIM - User Group creation through management APIs/scripts

Nagashree Balasundaram 741 Reputation points
2022-11-03T18:56:28.253+00:00

Is there a way to create and manage user groups in APIM using the REST APIs or AZ powershell commands?

I have looked through the documentation on APIM REST APIs - https://learn.microsoft.com/en-us/rest/api/apimanagement/current-ga/user-group/list?tabs=HTTP; this only shows the list operation to fetch the user groups.

Azure API Management
Azure API Management

An Azure service that provides a hybrid, multi-cloud management platform for APIs.

0 comments No comments

Answer accepted by question author

MuthuKumaranMurugaachari-MSFT 22,451 Reputation points Moderator
2022-11-03T22:02:01.627+00:00

@Nagashree Balasundaram Based on my understanding, you want to create a new group and add and manage users via REST API. Use Group entity to create a new group or manage existing groups and the same has been documented in docs: https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-create-groups

256956-image.png

For adding and managing users to a group, use Group User entity. Here are some PowerShell references: New-AzApiManagementGroup and Add-AzApiManagementUserToGroup. I hope this answers your question and feel free to add a comment if you have any other questions. We would be happy to assist you.

Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.