Microsoft recommends use of the unifiedRoleDefinition APIs
Look in the difference between the directoryRole and unifiedRoleDefinition APIs to understand what Microsoft is now recommending change. The post Microsoft recommends use of the unifiedRoleDefiniti...