Comments (8)
I know I am commenting on an older post, but IMHO "by design" is not a satisfactory answer...
I just spent some time trying to "fix" a non issue, since the API should return null/empty response but returns this obscure error instead.
Please take back to the product team to reconsider and return a valid response with an empty value.
from aspnet-snippets-sample.
Thanks for reporting this. The behavior you're seeing is by design, as per the product team.
from aspnet-snippets-sample.
@mjohl I no longer work for Microsoft, so I'm no longer involved with maintaining this sample. The sample in this repo is intended only to demonstrate how the service works. This repo isn't the best place to get the product team's attention. You might get more traction on StackOverflow.
(I don't disagree with you, by the way.)
from aspnet-snippets-sample.
I fully agree with @shaipetel on this one. Return null at least instead of an exception. The latency and load on apps are bad enough without the need to add error handling for something that should be null. Seriously....."by design" is such a cop out answer!
from aspnet-snippets-sample.
What is even more annoying is that the initial user returned will have manager as null, even if they have a manager, as expand does nothing.
So to fetch manager I have to run a separate query on every single user.
If you have to work with 300'000 plus profiles the performance to query for the manager on every single user you might as well not do it because it takes hours.
The expand should at least return the managers UPN on the property, but instead we are forced to over query the graph client.
@jamescro I take it this issue is not going to get opened again? The fact that it took 4 months to respond to the original issue is rather shocking as well.
from aspnet-snippets-sample.
@jamescro Thank you for the info. I will put it on StackOverflow and maybe / hopefully get some traction there.
from aspnet-snippets-sample.
@mjohl I know it's been a long time since then but did you get any answer for this ?
from aspnet-snippets-sample.
@thebaud2u see my response in the linked issue #46.
from aspnet-snippets-sample.
Related Issues (20)
- Question: How to get the group picture along with group properties HOT 1
- How to set up open extension in application manifest under optionalclaims? HOT 1
- Microsoft Graph is only for Azure AD? HOT 1
- Image src attribute in email body using microsoft graph HOT 1
- Where is the Resources resource? HOT 1
- Authorization_RequestDenied . Insufficient privileges to complete the operation HOT 1
- Unable to update Group description
- An exception is thrown when a user's manager is requested, and is null. HOT 4
- MSAL.NET 3 - breaks these samples? HOT 2
- How to create SharePoint documentSet using onedrive api? HOT 1
- Microsoft.Identity.Web.MicrosoftGraphExtensions AddMicrosoftGraph extension HOT 5
- Creating class team
- Authentication Error - Value cannot be null. (Parameter 'value') HOT 3
- Microsoft.Identity.Web v1.6.0 (IServiceCollection doesn't have AddSignIn) HOT 1
- App crashes on File menu with personal account HOT 2
- Calendar not working HOT 3
- This repo is missing important files
- Missing Areas? HOT 1
- Access to Sharepoint sites
- Missing files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aspnet-snippets-sample.