Questions about enrolment creation via rest API

Reiss.Dick39
Posts: 3 ✭
in Development
I am attempting to create an enrolment via the api but I am running into the following error. { "type": "http://docs.valence.desire2learn.com/res/apiprop.html#not-authorized", "title": "Not Authorized", "status": 403, "detail": "Insufficient scope to call API.Required: enrollment:orgunit:create"} When i change the scope to enrollment:orgunit:create i then get this error {"error":"invalid_scope","error_description":"Client is not authorized to request the scope enrollment:orgunit:create"} I am using oauth2 and signing in with my credentials to get my token. Not sure if I am missing something or if a permission is off. Thanks
Tagged:
Answers
-
OAuth2 clients are not allowed to request scopes for access tokens that they haven't declared at registration time that they will ask for. The application registration for this app needs to get updated to also include the "enrollment:orgunit:create" scope.
Categories
- All Categories
- 6 Thought Leadership
- 7 Known and Fixed Issues
- 6 Product Roadmap
- 553 Archived
- 10 Accessibility
- 27 Community Corner
- 2 Welcome
- Updates
- Member Spotlights
- 4 Events
- 242 Development
- 746 Customer Enablement
- Evaluate - Assess Student Learning
- Get Comfortable with Brightspace
- Communicate - Engage with Your Students
- 1 Create - Set up your Brightspace course
- Action - Add or create student activities
- 26 Partners
- 8 Product News
- 2022
- 2022 Release Notes
- 2021 Release Notes
- 4 Training
- andycat