A Microsoft file hosting and synchronization service.
Hi! I'll share information for each line:
1.UI-based check-in/check-out is NOT enabled by default.
- The options are hidden unless you're using OneDrive for business/education (backed by SharePoint)
- You enable "require check-out" via library settings
Once it is enabled:
- Files open as read-only until checked out
- New files are auto-checked out to the creator
- Check-in/Check-out appears in ellipsis menu
- Check-out on folders is not supported on individual files
2.UI-based check-in/check-out works even if UI doesn't expose it
- API honors library settings: "Require check-out" is disabled, you can still manually check files in/out via API
- Identify binding matters. A file checked out by USER A cannot be edited in UI by USER B, even if suing the same Graph client app.
Take note of the following:
- If client credentials flow is used, the API impersonates the app identity. The UI will see this as "checked out by someone else"
- You cannot check-in a file via UI if it was checked out via Graph by a different user or app
- You can check the checkedOutType and checkedOutBy filed via Graph to track ownership.
3.Interoperability between UI and API actions.
Here are some samples.
- API checks out a file. Result: UI shows it as locked/red-only to others.
- Same user tries editing in UI. Result: It is allowed if identity matches the API check-out.
- A Different user edits in UI. Result: It is blocked with "checked out by someone"
- File is checked via API. Result: UI updates status and allows editing again.
- File is discarded in UI. Result: Graph checkout returns none.