[JIRA] (JENKINS-61381) Groups synchronization with Azure AD does not work if user has more than 150 groups

11 views
Skip to first unread message

pablo.gomezjimenez@dhl.com (JIRA)

unread,
Mar 7, 2020, 9:42:04 AM3/7/20
to jenkinsc...@googlegroups.com
Pablo Gomez created an issue
 
Jenkins / Bug JENKINS-61381
Groups synchronization with Azure AD does not work if user has more than 150 groups
Issue Type: Bug Bug
Assignee: Ivan Fernandez Calvo
Components: saml-plugin
Created: 2020-03-07 14:41
Environment: Jenkins 2.190.1
SAML Plugin 1.1.5
Priority: Critical Critical
Reporter: Pablo Gomez

I integrated Jenkins with Azure AD using the SAML plugin. I created in Azure AD a group claim to send the Jenkins the groups list the user is member of. The problem is if the user has more than 150 groups then Azure AD, instead of sending the groups claim, it sends a claim with name http://schemas.microsoft.com/claims/groups.link and value a Microsoft Graph link to get the list of groups. The SAML plugin is not calling the Microsoft Graph API and JEnkins thinks the user is not member of any group. 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

kuisathaverat@gmail.com (JIRA)

unread,
Mar 7, 2020, 1:54:02 PM3/7/20
to jenkinsc...@googlegroups.com

kuisathaverat@gmail.com (JIRA)

unread,
Mar 7, 2020, 2:03:02 PM3/7/20
to jenkinsc...@googlegroups.com
Ivan Fernandez Calvo commented on Bug JENKINS-61381
 
Re: Groups synchronization with Azure AD does not work if user has more than 150 groups

SAML Plugin implements the SAML 2.9 standard protocol, SAML 2.0 does not have any service to request groups for a user. The feature you described looks like a MIcrosoft extension, so not supported in the standard.

kuisathaverat@gmail.com (JIRA)

unread,
Mar 7, 2020, 2:03:03 PM3/7/20
to jenkinsc...@googlegroups.com
SAML Plugin implements the SAML 2. 9 0 standard protocol, SAML 2.0 does not have any service to request groups for a user. The feature you described looks like a MIcrosoft extension, so not supported in the standard.

kuisathaverat@gmail.com (JIRA)

unread,
Mar 7, 2020, 2:04:02 PM3/7/20
to jenkinsc...@googlegroups.com
Ivan Fernandez Calvo closed an issue as Not A Defect
 
Status: Open Closed
Resolution: Not A Defect

pablo.gomezjimenez@dhl.com (JIRA)

unread,
Mar 8, 2020, 7:41:04 AM3/8/20
to jenkinsc...@googlegroups.com
Pablo Gomez commented on Bug JENKINS-61381
 
Re: Groups synchronization with Azure AD does not work if user has more than 150 groups

Ivan Fernandez Calvo For me it is not a Microsoft extension. It is just a limitation in Azure AD: if the user has less than 150 groups then it sends the claim with the list of groups normally, but if they have more than 150 then it sends you link to the service to get the full list in a different attribute. Anyway, it doesn't matter whether it is standard SAML or not, the issue is still valid.  The SAML plugin claims to support Azure AD and a lot of Azure users can be affected by this issue. 

pablo.gomezjimenez@dhl.com (JIRA)

unread,
Mar 8, 2020, 7:46:03 AM3/8/20
to jenkinsc...@googlegroups.com
Pablo Gomez edited a comment on Bug JENKINS-61381
[~ifernandezcalvo] For me it is not a Microsoft extension. It is just a limitation in Azure AD: if the user has less than 150 groups then it sends the claim with the list of groups normally, but if they have more than 150 then it sends you link to the service to get the full list in a different attribute. Anyway, it doesn't matter whether it is standard SAML or not, the issue is still valid.  The SAML plugin claims to support has a compatibility issue Azure AD and a lot of Azure users can be affected by this issue. 
Reply all
Reply to author
Forward
0 new messages