Skip to content

Missing onPremisesSamAccountName in user search response #144

@ScharfViktor

Description

@ScharfViktor

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions