402 Approvals can only be set for members of the policy” error when setting approver for new user added to workspace
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.72-1 Reproducible in staging?: Y Reproducible in production?: Y If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs: https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by: @garrettmknight Slack conversation (hyperlinked to channel name): #expense
Action Performed:
- Create a workspace
- Invite Submitter + Approver A
- Enable Workflows > Approval + Delay Submission
- Set Approver A as approver (A key step to reproduce this is that all accounts must be on the same validated domain)
Expected Result:
Approver A is set as Approver
Actual Result:
402 Approvals can only be set for members of the policy” error when setting approver for new user added to workspace
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
- [ ] Android: Standalone
- [ ] Android: HybridApp
- [ ] Android: mWeb Chrome
- [ ] iOS: Standalone
- [ ] iOS: HybridApp
- [ ] iOS: mWeb Safari
- [x] MacOS: Chrome / Safari
- [ ] MacOS: Desktop
Screenshots/Videos
Add any screenshot/video evidence
https://github.com/user-attachments/assets/3a88257b-f7ad-4b8b-b4be-1d4ce8e803ce
Triggered auto assignment to @abekkala (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.
The fix is under review now. It only requires a backend change.
This is all done