Member since
12-07-2018
3
Posts
0
Kudos Received
0
Solutions
12-10-2018
03:40 PM
For those interested in using this in PowerShell, This is the way I'm calling the REST-API: $Headers = @{'X-Requested-By' = 'ambari'}
$Body = '[{"PrivilegeInfo": { "permission_name": "VIEW.USER", "principal_name": "group_poc", "principal_type": "GROUP" } }]'
$Resp = Invoke-WebRequest -Method Post -Uri "https://<Your-Cluster-Name>/api/v1/views/HIVE/versions/2.0.0/instances/AUTO_HIVE20_INSTANCE/privileges/" -Credential <Your-Credentials> -Headers $Headers -Body $Body
... View more