從 Distribution list of users 需要使用過濾器獲取將在下個月完成作業周年紀念日的串列用戶。能夠獲取用戶員工雇用日期需要根據月份對員工雇用日期屬性進行篩選,這樣我就可以獲取所有用戶特定的用戶組,而不是拉動所有用戶
uj5u.com熱心網友回復:
遺憾的是,您無法employeeHireDate按年、月或日進行過濾。
您需要發送多個請求才能獲取所需的所有資料。要進行過濾,employeeHireDate您需要添加標頭ConsistencyLevel:eventual和查詢引數$count=true
獲取下個月一周年的用戶
https://graph.microsoft.com/v1.0/users?$select=displayName,employeeHireDate&$filter=employeeHireDate ge 2021-12-01T00:00:01Z and employeeHireDate le 2021-12-31T23:59:59Z&$count=true
與 5、10 等周年紀念日的用戶類似
https://graph.microsoft.com/v1.0/users?$select=displayName,employeeHireDate&$filter=employeeHireDate ge 2017-12-01T00:00:01Z and employeeHireDate le 2017-12-31T23:59:59Z&$count=true
https://graph.microsoft.com/v1.0/users?$select=displayName,employeeHireDate&$filter=employeeHireDate ge 2012-12-01T00:00:01Z and employeeHireDate le 2012-12-31T23:59:59Z&$count=true
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/534985.html
