Hi @Amin, Sagar
Try the following code snippet:
const options = {
authProvider,
};
const client = Client.init(options);
let roleEligibilitySchedules = await client.api('/roleManagement/directory/roleEligibilitySchedules')
.version('beta')
.filter('principalId eq \'xxxxxxxxxxxxxxxxxxxxx\'')
.expand('roleDefinition')
.select('principalId,roleDefinitionId,directoryScopeId,scheduleInfo,status')
.get();
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.