- Notifications
You must be signed in to change notification settings - Fork 215
Open
Description
Objective: I want to add a MS Entra group to a ADO Group. I can successfully do it using the API POST https://vssps.dev.azure.com/<>/_apis/graph/groups?groupDescriptors=vssgp.Uy0....&api-version=6.0-preview.1
but whenever I am trying to use the following code I am getting a 500 error:
class GraphGroupOriginIdCreationContext(GraphGroupCreationContext):
_attribute_map = {
'origin_id': {'key': 'originId', 'type': 'str'}
}
graph_client = connection.clients_v6_0.get_graph_client()
def init(self, origin_id=None):
super(GraphGroupOriginIdCreationContext, self).init()
self.origin_id = origin_id
new_group = GraphGroupOriginIdCreationContext(origin_id="<>")
graph_client.create_group(new_group, group_descriptors="vssgp.Uy0....")
Can anyone tell me where I am getting it wrong or is this a bug?
Metadata
Metadata
Assignees
Labels
No labels