cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
rancho
Community Participant

authorization for deactivating a student via api

Jump to solution

Hello everyone

I am trying to set integration between our PeopleSoft system and Canvas.  One of the things I have been asked to do is to deactivate a student when they withdraw from a course.  I think I have everything working as planned.  Except I am receiving an error message on the delete call.  Here is the URL I am using.

https://XXXX/api/v1/courses/44727/enrollments/371559?task=deactivate

I am set up in the TEST system as an admin they tell me.   I generated my token as admin from the Account | User Settings | Approved Integrations section.   However after the delete call I get this error message.

{
    "status" : "unauthorized",
    "errors" : [
         {
              "message" : "user not authorized to perform that action"
         }
      ]
}

 

So what sort of permissions does my account need to generate a token that will allow me to deactivate students?

Thanks for reading this far.

cheers

bob

Labels (2)
0 Kudos
1 Solution

Accepted Solutions
rancho
Community Participant

Never mind, turns out they only made me admin on the PROD side.  I was just an advisor on the TEST side.  They changed that admin and all worked as expected.

View solution in original post

0 Kudos
1 Reply
rancho
Community Participant

Never mind, turns out they only made me admin on the PROD side.  I was just an advisor on the TEST side.  They changed that admin and all worked as expected.

View solution in original post

0 Kudos