Hi @Khrapunov, Ivan
Make sure your context meets the following conditions, otherwise the property will return null
.
To read this property, the calling app must be assigned the
User-LifeCycleInfo.Read.All
permission. To write this property, the calling app must be assigned theUser.Read.All
andUser-LifeCycleInfo.ReadWrite.All
permissions. To read this property in delegated scenarios, the admin needs one of the following Azure AD roles: Lifecycle Workflows Administrator, Global Reader, or Global Administrator. To write this property in delegated scenarios, the admin needs the Global Administrator role.
Call test:
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.