cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
Community Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
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. 

 
 
1 REPLY 1

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.

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!