The Instructure Community will enter a read-only state on November 22, 2025 as we prepare to migrate to our new Community platform in early December.
Read our blog post for more info about this change.
How do you create a new canvas user account with their authentication user id set to saml.
Im assuming creating a user account is simialr to the sis import of user headings within the csv file.
$token = "scrammble toke code"
$headers = @{"Authorization"="Bearer "+$token}
$domain ="schooldomain.instructure.com:443"
$body=@{'user[name]'='Star Lord'
'user[short_name]'='Star Lord'
'user[time_zone]' = 'Adelaide'
'communication_channel[address]' = 'lords@cschooldomain.sa.edu.au'
'pseudonym[unique_id]' = 'lords@schooldomain.sa.edu.au'
'pseudonym[password]' = ''
'pseudonym[sis_user_id]' = '99999e'
'pseudonym[send_confirmation]' = 'false'
'psuedonym[authentication_provider_id]' = 'saml'}
Invoke-WebRequest -Method Post -Body $body -Headers $headers -Uri "https://$domain/api/v1/accounts/1/users"
The above PowerShell script works with creating a user account, however, it seems to create the account
as local to canvas and doesn't seem to be applying the authentication_provider_id = saml line.
I receive no on-screen errors when running this script.
Is there something that I have not applied or is the detail of information for the authentication_provider_id not correct
In addition, is best to perform a sis import for this kind of API post in creating new student accounts that are not authenticated locally.
Community helpTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign inTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign in
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.