Skip to content

Missing onPremisesSamAccountName in user search response #144

Closed

Description

@v-scharf

Describe the bug

A clear and concise description of what the bug is.

Steps to reproduce

  1. create user Brian-04f
  2. einstein tries to share to new user. search by: Brian-04f
  3. admin tries to share to new user. search by: Brian-04f

Expected behavior

both users have onPremisesSamAccountName=Brian-04f in the response body

Actual behavior

GET https://opencloud-server:9200/graph/v1.0/users?%24search=%22Brian-04f%22&%24orderby=displayName
response body doesn't contain onPremisesSamAccountName for einstein. admin can see onPremisesSamAccountName and email

if I run opencloud with OC_SHOW_USER_EMAIL_IN_RESULTS=true
einstein has onPremisesSamAccountName but it's empty

Image

Setup

Please describe how you started the server and provide a list of relevant environment variables or configuration files.

Details

OC_XXX=somevalue
OC_YYY=somevalue
PROXY_XXX=somevalue

Additional context

Add any other context about the problem here.

cc @rhafer

Activity

  1. self-assigned this
    on Jan 5, 2026
  2. moved this from Qualification to In Progress in OpenCloud Team Boardon Jan 5, 2026
  3. added a commit that references this issue on Jan 5, 2026
    943ae40
  4. added a commit that references this issue on Jan 7, 2026
    6082e0c
  5. added a commit that references this issue on Oct 13, 2026
    c21e01a
  6. added 2 commits that reference this issue on Nov 23, 2026
    36978c8
    da1246e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions