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

graph: create user, empty givenName attribute #5431

Closed
rhafer opened this issue Jan 19, 2023 · 0 comments · Fixed by #6259
Closed

graph: create user, empty givenName attribute #5431

rhafer opened this issue Jan 19, 2023 · 0 comments · Fixed by #6259
Assignees
Labels

Comments

@rhafer
Copy link
Contributor

rhafer commented Jan 19, 2023

Describe the bug

Creating a user without the "givenName" attribute returns a empty string for "givenName". It should not return that attribute at all.

curl -k -X 'POST' -u admin:admin  'https://localhost:9200/graph/v1.0/users' --data '{ "onPremisesSamAccountName": "test", "displayName":"test", "mail":"[email protected]"}' | jq .
{
  "displayName": "test",
  "givenName": "",
  "id": "da62e68f-3b08-4876-a950-780ff2f7af53",
  "mail": "[email protected]",
  "onPremisesSamAccountName": "test",
  "surname": "test"
}

expected result:

{
  "displayName": "test",
  "id": "da62e68f-3b08-4876-a950-780ff2f7af53",
  "mail": "[email protected]",
  "onPremisesSamAccountName": "test",
  "surname": "test"
}
@2403905 2403905 self-assigned this May 9, 2023
@2403905 2403905 moved this from Qualification to In progress in Infinite Scale Team Board May 9, 2023
2403905 added a commit to 2403905/ocis that referenced this issue May 9, 2023
2403905 added a commit to 2403905/ocis that referenced this issue May 9, 2023
2403905 added a commit to 2403905/ocis that referenced this issue May 9, 2023
2403905 added a commit to 2403905/ocis that referenced this issue May 9, 2023
2403905 added a commit that referenced this issue May 10, 2023
Omitempty givenName attribute when create user #5431
@github-project-automation github-project-automation bot moved this from In progress to Done in Infinite Scale Team Board May 10, 2023
ownclouders pushed a commit that referenced this issue May 10, 2023
Omitempty givenName attribute when create user #5431
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants