Using the API to create a user on an SSO only system

I have the same use case as this topic: Adding new users vs inviting them