79418518

Date: 2025-02-06 15:49:03
Score: 2.5
Natty:
Report link

Yes, this behavior is intentional and is due to Canvas' privacy settings and permissions model.

Why Is the Email Missing for Regular Users?

  1. Privacy Settings in Canvas:
    Canvas hides user email addresses by default unless the requesting user has the correct permissions. Admin users have broader access, so they can see emails, but regular users do not necessarily have permission to view their own or others' email addresses via the API.

  2. Account-Level Settings:
    Your Canvas instance may have settings that restrict email visibility for non-admin users. For example, Canvas administrators can configure whether email addresses are visible through the API under:
    Admin > Settings > Security (or similar)

  3. Scope of OAuth Tokens:
    Even though you have disabled enforce scopes, Canvas still applies certain internal privacy rules. The email field might require additional permissions, such as Users - manage login details.

  4. User Visibility & Role Permissions:
    The visibility of user emails may also depend on the specific role settings under:
    Admin > Roles & Permissions

    Look for permissions related to "Users" or "Profile" and check if there are any restrictions on email visibility.

Possible Solutions

Final Thought

Even with global developer key access, Canvas enforces privacy policies for regular users. You may need to adjust role permissions or request emails via a different endpoint (/profile) or with additional API scopes.

Would you like help testing specific API calls or adjusting Canvas settings?

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Александр Шарапов