redhat-cop / redhat-cop/group-sync-operator

Only one field syncing with Azure AD

Open
#127 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
132
Forks
71
PR merge metrics
No merged PRs in 30d

Description

Hello,

I'm facing a similar issue as in https://github.com/redhat-cop/group-sync-operator/issues/55 . I have set an Azure sync with the following config:

  userNameAttributes:
    - mail
    - userPrincipalName

Now if the user has nothing set as their email address, the user will be synced as <nil>. I think in this case the user's userPrincipalName should be used instead - at least this is what I would like it to do. If I flip the parameters the other way around, their userPrincipalName will be synced correctly, but then the email is always discarded.

Any ideas? Thanks in advance!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Azure sync with userNameAttributes set to mail and userPrincipalName, then trace the Azure AD handling in the Go operator. Done means a missing mail value falls back to userPrincipalName without discarding mail when it is present; add or update coverage for both cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, go
Domain
authorization, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.