Am trying to automate user onboarding. I couldn’t ...
# ask-community
s
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
hey @Sivanandha Rajadurai, I think you can use this workspace user access endpoint https://app.prefect.cloud/api/docs#tag/Workspace-User-Access
s
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
no problem!