https://prefect.io logo
s

Sivanandha Rajadurai

08/24/2023, 1:20 PM
Am trying to automate user onboarding. I couldn’t find an api that adds an user to the workspace, considering that thr user has accepted the org invite. Is there one? There’s something called workspace invitation but that sends the invite for the org. The issue is, it sends a new invite even though the user is an active member of the organization.
1
w

Will Raphaelson

08/24/2023, 3:45 PM
hey @Sivanandha Rajadurai, I think you can use this workspace user access endpoint https://app.prefect.cloud/api/docs#tag/Workspace-User-Access
s

Sivanandha Rajadurai

08/24/2023, 4:11 PM
Yup tried that. It says that the user doesn’t exist. I know that the api description says upsert, but it just does an update
Oops ok my bad. I need to pass the user_id instead of the id… thanks
🙌 1
w

Will Raphaelson

08/24/2023, 5:42 PM
no problem!