📁 Sangam Dhakal - Portfolio v2.0 - Netscape Navigator 4.0
_
□
×

📚 Interview question

Your Entra ID users belong to hundreds of groups and the groups claim disappears from their tokens. What is happening and how do you design around it?

Intermediate Theory Intermediate

🎯 Key points

  • 200 group ids per JWT before overage
  • Overage indicator points to Microsoft Graph
  • Graph lookup needs permission and caching
  • App roles assigned to groups keep tokens small
  • Groups assigned to the application only
  • Handle overage explicitly or users lose access

⏱ 30-second answer

Entra ID limits how many group ids it puts in a token: above 200 groups in a JWT (150 for SAML, 6 for implicit flow) it omits the groups claim and adds an overage indicator (_claim_names / _claim_sources pointing at Microsoft Graph, or hasgroups in some flows), so the app must call Graph (/me/getMemberObjects or /users/{id}/transitiveMemberOf) to get memberships, which needs a Graph permission, adds latency and should be cached. Better designs avoid raw groups: define app roles and assign them to groups, so the token carries a short roles list; or set the group claim to 'groups assigned to the application' only; or keep fine-grained permissions in the app and cache them. Code must handle the overage case explicitly, or users silently lose access.

🔍 What the interviewer is checking

Checks awareness of the groups overage limit and app roles

↩ Usually asked after

More in Authentication

Last updated 23 Nov 2026.

🌐 Sangam's Webring

⏪ Previous 🏠 Main Next ⏩
💬 Chat with me