azure-devops-python-api icon indicating copy to clipboard operation
azure-devops-python-api copied to clipboard

Deleting a group returns invalid parameter sddlForm

Open arvinatwork opened this issue 7 years ago • 1 comments

2019-02-06 11:07:26,609 vsts.vss_client DEBUG Route template: _apis/{resource}/{groupId} 2019-02-06 11:07:26,609 vsts.vss_client DEBUG Api version '4.1' 2019-02-06 11:07:26,609 vsts.vss_client DEBUG DELETE https://vssps.dev.azure.com/INGEU/_apis/Groups/11ec1424-6b35-4554-9e1f-5d6433a90043 2019-02-06 11:07:26,609 vsts.vss_client DEBUG Request content: None 2019-02-06 11:07:26,609 msrest.universal_http DEBUG Configuring redirects: allow=True, max=30 2019-02-06 11:07:26,609 msrest.universal_http DEBUG Configuring request: timeout=100, verify=True, cert=None 2019-02-06 11:07:26,609 msrest.universal_http DEBUG Configuring proxies: '' 2019-02-06 11:07:26,609 msrest.universal_http DEBUG Evaluate proxies against ENV settings: True 2019-02-06 11:07:27,012 urllib3.connectionpool DEBUG https://vssps.dev.azure.com:443 "DELETE /INGEU/_apis/Groups/11ec1424-6b35-4554-9e1f-5d6433a90043 HTTP/1.1" 400 196 2019-02-06 11:07:27,015 vsts.vss_client DEBUG Response content: {"$id":"1","innerException":null,"message":"Value was invalid.\r\nParameter name: sddlForm","typeName":"System.ArgumentException, mscorlib","typeKey":"ArgumentException","errorCode":0,"eventId":0} 2019-02-06 11:07:27,016 msrest.exceptions DEBUG Value was invalid. Parameter name: sddlForm

arvinatwork avatar Feb 06 '19 03:02 arvinatwork

hey arvinatwork – in this case, the error is occuring because the delete groups endpoint requires the input parameter to be passed as the descriptor rather than the id, e.g. "Microsoft.TeamFoundation.Identity;S-1-9-1551374245-2816355810-2660785477-3026872297-2444248852-1-4059446058-1395882831-2881762830-3948821452" instead of "916310e9-d72a-4167-a169-1945903f58ab". You can find the descriptor by calling the identities endpoint, e.g. https://vssps.dev.azure.com/vsalmopen/_apis/identities/916310e9-d72a-4167-a169-1945903f58ab

kenankigunda avatar Apr 25 '19 01:04 kenankigunda