$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 os the detail of information for the authentication_provider_id not correct.
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.