Instructor view as student in LTI.3 receive an error bad request

Jeewani.L.7145
Jeewani.L.7145 Posts: 3 🌱
edited December 2025 in Higher Ed / Postsecondary

After creating a course in D2L LMS and paired the content with external tool, when I try to view it as a student launching the LTI 1.3 I receive the following error.

timestamp

1765531328920

status

400

error

"Bad Request"

exception

"java.lang.NullPointerException"

message

'Cannot invoke "String.toLowerCase()" because "roles" is null'

path

"/dashboard/347764f9-7c78-4b50-a3b2-8bd7ae85ca06"

D2L Behavior:
D2L sends the same user ID in the sub field for both: 

  • Instructor view. 
  • View as Student mode.

Because D2L does not provide a unique user ID for View as Student the course launch does not work as intended.

The root cause is that D2L does not differentiate the user ID between instructor and View as Student mode.

Please assist us with this.

Answers

  • Sreelakshmi.N.546
    Sreelakshmi.N.546 Posts: 132 🤝🏼 image

    Hi Jeewani,

    Thank you for reaching out to us through the community!

    Looking into the issue you reported, as you mentioned, the role switch resulted in the error you received.

    There are some technical limitations with how Role Switch works, and the most reliable method of experiencing things as another role/user.

    If you are looking for any specific data related to user in Student role, the recommended way is to impersonate the student, and then you should be able to access the data

    Thanks

    Sreelakshmi