# Script to add the user to Azure Data Lake workspace with allow-cluster-create access $url = "https://adb-58900332754.14.azuredatabricks.net/api/2.0/preview/scim/v2/Users" $bearer_token = "dapie53af3e778b46c69f12a75c6-2" $headers = @{Authorization = "Bearer $bearer_token"} $par = '{ "schemas":[ "urn:ietf:params:scim:schemas:core:2.0:User" ], "userName":"databricksuser-2@globaleduc.onmicrosoft.com", "displayName":"User 2", "entitlements":[ { "value":"allow-cluster-create" } ] }' Invoke-WebRequest $url -Method Post -Headers $headers -Body $par -ContentType 'application/json'
Wednesday, January 27, 2021
Add user to Azure Data lake using PowerShell
Subscribe to:
Post Comments (Atom)
HTML
Script:
No comments:
Post a Comment