cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 

Workspace Assignment Issue via REST API

Lackshu
New Contributor II

I’m relying on workspace assignment via REST API to have the account user created in the workspace. This is like the workspace assignment screen at account level or adding existing user screen at workspace level. The reference URL is below.

Workspace Assignment Update

My code is attached. When I make the call with the appropriate parameters, the REST API call returns with status code 200 and the response has the appropriate details of the user. However the user doesn't appear in the workspace and is also not available when I try to retrieve the user at workspace level via a REST API call.

Any input or advise is appreciated. 

 
 
2 REPLIES 2

Lackshu
New Contributor II

It turns out, the problem is the documentation. It says that the permission parameter (that's supplied in) is an array of strings. It really just expects a string, either UNKNOWN, USER, or ADMIN. It would be great if the team could fix the documentation as it’ll confuse people.

trm
New Contributor II

This documentation is still outdated. @Lackshu can you please provide your solution.