I have my user system implemented with Identity Server 4 (.NET). My requirement is when a new user was created, I need to create a Workspace (if not) and a new user with the same email in Slack and add this user into this workspace.
So my questions is
Thank very much for reading my question.
You've two distinct workflows here. One is creating a user, which you can do with the SCIM API, assuming you're on a Business+ or Enterprise Grid plan.
The other thing you want to do is create a Workspace. For this, you'd need to use the Admin API method admin.teams.create
. Using this requires a Enterprise Grid plan, because you can only use the API to create workspaces inside a Grid you control. You can't create completely new workspaces outside of a grid using an API.