$GroupdID = "7519627166" # ID of the group where users need to be added as a member $bearer_token = "dapi4defcba7682aff5-2" $workspaceURL ="https://adb-85238717.17.azuredatabricks.net" #---------------------------------------------------------------------------------------- $url = "$workspaceURL/api/2.0/preview/scim/v2/Groups/$GroupdID" $headers = @{Authorization = "Bearer $bearer_token"} $par = '{ "schemas":[ "urn:ietf:params:scim:api:messages:2.0:PatchOp" ], "Operations":[ { "op":"add", "value":{ "members":[ { "value": "287484517 - ID of the user which needs to be added into above group" } ] } } ] }' Invoke-WebRequest $url -Method PATCH -Headers $headers -Body $par -ContentType 'application/json'
Sunday, January 31, 2021
Add user to Azure Data lake workspace Group using PowerShell
Subscribe to:
Post Comments (Atom)
HTML
Script:
No comments:
Post a Comment