Get shiftPreferences Bug Report

Yang, Yinchen 0 Reputation points
2025-07-28T20:38:18.44+00:00

Get shiftPreferences is always returning.

 "createdDateTime": null,
 "lastModifiedDateTime": null,
 "lastModifiedBy": null,
Microsoft 365 and Office | Development | Microsoft 365 Developer Program
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. TiNo-T 4,215 Reputation points Microsoft External Staff Moderator
    2025-07-29T04:29:15.4333333+00:00

    Dear @Yang, Yinchen,

    Thank you so much for contacting Microsoft Q&A Forum. 

    Based on your description, itf the shiftPreferences API is consistently returning: 

    "createdDateTime": null, 

    "lastModifiedDateTime": null, 

    "lastModifiedBy": null 

    This typically indicates that the shift preference object may exists but hasn't been modified or explicitly created by a user or system yet. Also, I need more contexts of your situation so that I can assist you further:  

    • Could you please provide your input regarding this scenario? 
    • Additionally, may I ask which applications you are using it for? 
    • If applicable, kindly share the part of your code which released these null outputs. 

    Besides that, I have basic steps that you can double-check your work: 

    1.May I know that have you ever set your shift preferences? If not, the null values may be expected. 

    2.Check API permissions: 

    • Schedule.Read.All 
    • Schedule.ReadWrite.All 
    • Also verify that delegated or application permissions are correctly configured. 

    Reference: Get schedule - Microsoft Graph v1.0 | Microsoft Learn 

    Also, I find several articles that you can consult more about this issue: 

    User's image

    User's image

    I hope this information can help you to clarify this issue so that you can resolve it soon. 

    Wish you a pleasant day!


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    User's image


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.