The error you are encountering, "Committed in-progress Source collection 'GUID', cannot be updated or deleted," indicates that the source collection you are trying to update is currently in a committed state and is still in progress. This means that the operation you are attempting cannot be performed until the in-progress operation is completed.
To resolve this issue, you can take the following steps:
- Check the Status: Ensure that the source collection is no longer in progress. You may need to wait until any ongoing operations are completed before attempting to update or delete the collection.
- Review Operations: If there are any operations that are still pending or in progress, you may need to complete or cancel them before proceeding with your update.
- Error Handling: Implement error handling in your code to manage such exceptions gracefully, allowing you to retry the operation after the in-progress state has changed.
Make sure you are using the correct permissions and that your API call is structured properly, as you have indicated you are using User.Read and User.Read.All permissions. However, for operations related to eDiscovery, you may need additional permissions such as eDiscovery.Read.All or eDiscovery.ReadWrite.All depending on the specific actions you are trying to perform.
If the problem persists, consider checking the Microsoft Graph documentation for any updates or changes regarding the handling of eDiscovery cases and searches.