admin管理员组文章数量:1422077
I am trying to add Azure AD group in Azure DevOps using the az devops security group create command, but I am encountering a 500 status code error. Here’s what I have attempted:
Command with Project Collection Valid Users:
az devops security group create --origin-id 'object ID from AD' --groups 'vssgp.wwwwww' --scope anization -- '/'
Command with a custom group name:
az devops security group create --origin-id 'object ID from AD' --groups 'vssgp.devlopergrp' --scope "anization" -- '/'
Result: Operation returned a 500 status code.
Since the AD Group is being added to the Azure devops for the first time, it doesn't have a descriptor.
I have verified that:
- The Object ID from AD is correct.
- The Azure DevOps CLI is authenticated and working for other commands.
- The anization URL is valid.
- The descriptor of the Project Collection Valid Users is correct
- I have Project Collection Administrator Permission on Azure DevOps.
What could be causing this issue, and how can I successfully create the group?
I am trying to add Azure AD group in Azure DevOps using the az devops security group create command, but I am encountering a 500 status code error. Here’s what I have attempted:
Command with Project Collection Valid Users:
az devops security group create --origin-id 'object ID from AD' --groups 'vssgp.wwwwww' --scope anization -- 'https://dev.azure/my-/'
Command with a custom group name:
az devops security group create --origin-id 'object ID from AD' --groups 'vssgp.devlopergrp' --scope "anization" -- 'https://dev.azure/my-/'
Result: Operation returned a 500 status code.
Since the AD Group is being added to the Azure devops for the first time, it doesn't have a descriptor.
I have verified that:
- The Object ID from AD is correct.
- The Azure DevOps CLI is authenticated and working for other commands.
- The anization URL is valid.
- The descriptor of the Project Collection Valid Users is correct
- I have Project Collection Administrator Permission on Azure DevOps.
What could be causing this issue, and how can I successfully create the group?
Share Improve this question edited Jan 17 at 15:56 Rui Jarimba 18.2k11 gold badges64 silver badges98 bronze badges asked Jan 17 at 15:51 Nyamat Allah Noorahmad MominNyamat Allah Noorahmad Momin 11 bronze badge 3 |2 Answers
Reset to default 0I can reproduce the same 500 error when trying to add an AAD group to Project Collection Valid Users group. If you add an AAD group manually to this group, you will get the same 500 error in the UI.
According to the official doc, this group contains all users and groups added anywhere within the collection. You can't modify the membership of this group. That is why you get 500 error.
It's suggested that you add your AAD group to other groups at anization level, whether a built-in group or your custom group.
I am trying to add the Azure AD group in the Organization's Project Collection Valid User and I am able to add from the portal.
Adding the group:
Group added:
If I use the descriptor of the Project Collection Valid Users, I'm getting the below error.
版权声明:本文标题:Error 500 When Creating Azure DevOps Security Group with az devops security group create - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745356919a2655109.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
--verbose
and/or--debug
options to your commands - see Be aware of globally available arguments. – Rui Jarimba Commented Jan 18 at 16:27