Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

group filter in Microsoft connector #3385

Open
2 tasks done
jagadeesh-kancherla-tfs opened this issue Feb 29, 2024 · 1 comment
Open
2 tasks done

group filter in Microsoft connector #3385

jagadeesh-kancherla-tfs opened this issue Feb 29, 2024 · 1 comment

Comments

@jagadeesh-kancherla-tfs

Preflight Checklist

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

Problem Description

We are using dex with ldap connector now switching to Microsoft connector, dex is getting all the groups from AD which causing issue for authentication

Proposed Solution

Previously we are using ldap which have filter for groups
groupSearch:
baseDN: dc=test,dc=com
filter: "(&(objectCategory=Group)(name=K8S----))"

expecting similar group filter in Microsoft

connectors:

type: microsoft
id: microsoft
name: Microsoft
config:
clientID:
clientSecret:
redirectURI:
tenant:

Is there any similar approach we have available in Microsoft connector?

Alternatives Considered

No response

Additional Information

No response

@nabokihms
Copy link
Member

@jagadeesh-kancherla-tfs Hello! I think you need to use groups: ["a", "b", "c"] along with useGroupsAsWhitelist: true.

Groups []string `json:"groups"`
GroupNameFormat GroupNameFormat `json:"groupNameFormat"`
UseGroupsAsWhitelist bool `json:"useGroupsAsWhitelist"`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants