Create roleEligibilityScheduleRequest fails with retries after user creation #2772
Labels
status:waiting-for-triage
An issue that is yet to be reviewed or assigned
type:bug
A broken experience
Describe the bug
Our team is developing an application to create users and assign role eligibilities to those users using the MS Graph SDK. However, we have not been able to get the role eligibility requests to work.
Expected behavior
We expect the roleEligibilityScheduleRequest to complete successfully since the target user object has already been created.
How to reproduce
Here's our C# code to create the user then make the role eligibility request:
This failed on the last line with an error "The subject is not found". Our suspicion was that the eligibility request was made too quickly, so we added code to use Graph's native retry mechanism to attempt retries:
This version with retries also fails on the last line after about 90 seconds, but with a different error:
Does this RoleEligibilityScheduleRequests feature work? How else can we troubleshoot this? Do we need a longer "bake time" than 90 seconds for the user object to populate in Graph?
A couple notes:
SDK Version
5.56.0
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
```The text was updated successfully, but these errors were encountered: