Issue with Changing SIS ID via API Using Postman

Jump to solution
AfshinGhafouri
Community Member

I receive 401-Unauthorized message when attempting to changing the value of SIS ID via API using Postman. However, I am able to successfully change (edit) any other fields such as email, name, etc when using the exact identical Postman configuration. I am an account ADMIN.

Can you tell me what I am doing wrong?

Below is my Postman Configuration:

URL: PUT https://OurServer.com/api/v1/users/48984

Headers:

Accept: application/json+canvas-string-ids
Content-Type: application/json
Authorization: Bearer 13468~4k5f646xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxh9N2rfYHgEID1c

Body:

{"user" : { "id" : "sis_user_id:f34be" } }

Or

{"user" : {"sis_user_id": "f34be" } }

*** Either REQUESTs are syntactically correct and work with other than sis_user_id fields.

Response:

{

 "status": "unauthorized",

"errors": [

        {

            "message": "user not authorized to perform that action"

        }

    ]

}

 

 

 

 

0 Likes
1 Solution
James
Community Champion

@AfshinGhafouri 

When you look at the documentation for the Edit a user endpoint of the Users API, the SIS user ID is not one of the parameters specified.

To modify the SIS user ID, you need to use the Edit a user login endpoint of the Logins API.

View solution in original post