office365 - Display a list of upcoming birthdays of Office 365 users using Microsoft Graph API -


using microsoft graph api, want create list of office 365 users's birtdays, cannot list of users related properties @ moment.

to set list need following properties exposed via graph api:

  • id
  • displayname
  • userprincipalname
  • birthday

using graph explorer, https://graph.microsoft.io/en-us/graph-explorer, i've tried request own properties (graph.microsoft.com/v1.0/me/?$select=id,displayname,userprincipalname,birthday) works:

{     "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users(id,displayname,userprincipalname,birthday)/$entity",     "id": "aaaaaaaa-bbbbb-ccccc-a3c6-63817c4bbbca",     "displayname": "harold van de kamp",     "userprincipalname": "harold@company.com",     "birthday": "2000-08-15t00:00:00z" } 

when query users (graph.microsoft.com/v1.0/users), works, doens't contain required properties

but when query users required properties (graph.microsoft.com/v1.0/users/?$select=id,displayname,userprincipalname,birthday), following error:

{     "error": {         "code": "internalservererror",         "message": "this operation not yet supported.",         "innererror": {             "request-id": "06a7b9c9-2fcd-4f26-a86c-fe9704a35a1e",             "date": "2016-06-11t11:15:45"         }     } } 

querying beta api (graph.microsoft.com/beta/users/?$select=id,displayname,userprincipalname,birthday) results in same error.

question: idea why error , how can working?

bonus question: possible directly query list of upcoming 15 birthdays?

sorry harold, unfortunately error message says, not supported. behind scenes microsoft graph farming out requests data multiple services. while microsoft graph support paging within services, doesn't yet support paging (or expand) across services. working on, no eta yet i'm afraid.


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -