App icon indicating copy to clipboard operation
App copied to clipboard

402 Approvals can only be set for members of the policy” error when setting approver for new user added to workspace

Open m-natarajan opened this issue 1 year ago • 1 comments

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:

  1. Create a workspace
  2. Invite Submitter + Approver A
  3. Enable Workflows > Approval + Delay Submission
  4. 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

Snip - New Expensify - Google Chrome (2)

View all open jobs on GitHub

m-natarajan avatar Dec 07 '24 23:12 m-natarajan

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.

melvin-bot[bot] avatar Dec 07 '24 23:12 melvin-bot[bot]

The fix is under review now. It only requires a backend change.

neil-marcellini avatar Dec 09 '24 17:12 neil-marcellini

This is all done

neil-marcellini avatar Dec 12 '24 18:12 neil-marcellini