Describe the bug
A clear and concise description of what the bug is.
Steps to reproduce
- create user
Brian-04f
einstein tries to share to new user. search by: Brian-04f
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

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
Describe the bug
A clear and concise description of what the bug is.
Steps to reproduce
Brian-04feinsteintries to share to new user. search by:Brian-04fadmintries to share to new user. search by:Brian-04fExpected behavior
both users have
onPremisesSamAccountName=Brian-04fin the response bodyActual behavior
GET https://opencloud-server:9200/graph/v1.0/users?%24search=%22Brian-04f%22&%24orderby=displayNameresponse body doesn't contain
onPremisesSamAccountNameforeinstein.admincan seeonPremisesSamAccountNameandemailif I run opencloud with
OC_SHOW_USER_EMAIL_IN_RESULTS=trueeinsteinhasonPremisesSamAccountNamebut it's emptySetup
Please describe how you started the server and provide a list of relevant environment variables or configuration files.
Details
Additional context
Add any other context about the problem here.
cc @rhafer