[$175] Account - Limit Copilot can't add bank account in Wallet
If you haven’t already, check out our contributing guidelines for onboarding. To join our Slack channel, fill out this form.
Version Number: v9.5.27-0 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from BrowserStack: https://test-management.browserstack.com/projects/2219752/test-runs/81600022/folder/57604648/41236699/1931637343?sort=%2Bidentifier and https://github.com/Expensify/App/pull/70408 Email or phone of affected tester (no customers): [email protected] Issue reported by: Applause Internal Team Bug source: Regression TC Execution Device used: Windows 11/Chrome App Component: User Settings
Action Performed:
Preconditions: User A has set User B as a limited Copilot user
Limited Copilot access:
- Login as User B that has limited Copilot access
- Switch to User A
- Click on the "Wallet"
- Click on Add bank account - Go until the last step of adding a Personal Bank account
Expected Result:
Verify the flow is open and allowed for Copilot
Actual Result:
Warning message appears: "You have not been given permission to take this action as a Copilot for (user A's email)."
Workaround:
Unknown
Platforms:
- [x] Android: App
- [ ] Android: mWeb Chrome
- [x] iOS: App
- [ ] iOS: mWeb Safari
- [ ] iOS: mWeb Chrome
- [x] Windows: Chrome
- [x] MacOS: Chrome Safari
Screenshots/Videos
https://github.com/user-attachments/assets/fedcbfec-7a62-4a96-a83b-765c651624ca
Applause Internal Information Exported by: Mita Rachim Bug ID: 7301718
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~022117074487705966762
- Upwork Job ID: 2117074487705966762
- Last Price Increase: 2026-11-02
Issue Owner
Current Issue Owner: @luacmartins
While Applause doesn't embed attachments for this bug, here are the links for quick view: https://platform.applause.com/services/links/v1/external/5deb06b65608578c0af043deac92acc46c5ab3fe355f60c5f918bef4e1a384c8
Proposal
What is the root cause of that problem?
The server rejects the final save, not the App. At the last step, the App sends AddPersonalBankAccount and shows whatever error the server returns. The App has no Copilot check anywhere in this flow.
The warning text ("You have not been given permission to take this action as a Copilot for…") does not exist in the App. The App's own Copilot message uses different wording ("As a copilot for X, you don't have permission to take this action. Sorry!"). So the backend is blocking AddPersonalBankAccount for limited Copilots.
fix: allow copilot adding bank account on wallet page removed the App-side Copilot guards for [$250] [Due for payment 2025-09-26] User setting - limited copilot unable to add personal bank account. The backend restriction stayed in place. Users now get through every step and fail only at the end.
What changes do you think we should make in order to solve the problem?
The fix is outside the App repo. An internal engineer with backend access should allow AddPersonalBankAccount for limited Copilots, matching the decision made in the earlier issue. No App change is needed.
What alternative solutions did you explore? (Optional)
If the product decision changes and limited Copilots should not add bank accounts, restore an up-front App check. That check would show the standard Copilot "no access" modal when the user taps Add bank account, instead of failing at the last step.
Investigation details
- The final step calls
addPersonalBankAccountfrom the confirmation step, or from the magic code step if the phone number changed: src/pages/AddPersonalBankAccountPage/index.tsx:206-222 - That function sends the
AddPersonalBankAccountwrite: src/libs/actions/BankAccounts.ts:705 - The App stores the server error on
PERSONAL_BANK_ACCOUNTand shows it above the Confirm button: src/components/SubStepForms/ConfirmationStep.tsx:258-263 - Earlier Plaid steps use read commands only (
OpenPlaidBankLogin,OpenPlaidBankAccountSelector). They succeed, which is why the tester reaches the last step. - The App's Copilot modal appears only through
isDelegateAccessRestricted. Nothing inAddPersonalBankAccountPage,EnablePayments,AddPlaidBankAccount, orWalletPageuses it. - The App's own Copilot string is at src/languages/en.ts:12506-12507. It does not match the reported text.
- I did not reproduce the bug in a browser, because the test setup needs two linked accounts with a limited Copilot role. I also could not confirm the backend check from here.
Next Steps for Contributor+ team:
To accept: This needs an internal engineer to fix the backend. No App PR is needed.
To refine: @MelvinBot <your feedback>
To reject: Explain why you are rejecting Melvin's proposal.
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thelullabyy (External)
Job added to Upwork: https://www.upwork.com/jobs/~022117074487705966762
Proposal
Please re-state the problem that we are trying to solve in this issue.
A limited Copilot acting as User A can go through every step of Wallet > Add bank account, but the final step fails with "You have not been given permission to take this action as a Copilot for (user A's email)." Adding a personal bank account should be allowed for a Copilot.
What is the root cause of that problem?
The final request doesn't only add a bank account. It also saves User A's private personal details, which a limited Copilot isn't allowed to change, so the server rejects the whole request.
-
In
src/pages/AddPersonalBankAccountPage/index.tsx:158-169, the account data sent at the last step is always merged with the owner's saved private personal details:return { ...privatePersonalDetails, addressStreet, addressStreet2, addressCity: currentAddress?.city, addressState: currentAddress?.state, addressZipCode: currentAddress?.zip, country: currentAddress?.country, ...personalBankAccount, ...bankAccountWithToken, phoneNumber, }; -
In
src/libs/actions/BankAccounts.ts:594-613,addPersonalBankAccountsends all of them with the bank account fields inAddPersonalBankAccount:phoneNumber: account?.phoneNumber, legalFirstName: account?.legalFirstName, legalLastName: account?.legalLastName, addressStreet: account?.addressStreet, ... addressCountry: account?.country,The backend saves these to the user's private personal details. Since the magic code step was added to this flow ("Ask for a magic code when adding a US personal bank account changes private personal details", merged Oct 28), it treats them like a Profile > Private change. That change needs the account owner's authority (a magic code sent to the owner). A limited Copilot has no such authority, and Profile > Private is already off-limits to them in the App, so the server answers with its Copilot permission error.
-
The App knew about this conflict. A commit in that same work, "Block copilots from changing private personal details in the bank account flow" (
269c1239b3c), showed the Copilot "no access" modal on the confirmation step, and was then reverted (ae00c890355). Since the revert, nothing on the App side stops a Copilot's request from carrying private personal details, so it reaches the server and fails at the very end. Earlier,fix: allow copilot adding bank account on wallet page(#70408, referenced in the test case) removed the App's up-front Copilot guards for this flow, so Copilots are meant to get through.
addPersonalBankAccount doesn't need these fields to add the account when the owner already has them saved. getSkippedStepsPersonalInfo already skips the name, address and phone steps when they exist.
What changes do you think we should make in order to solve the problem?
When acting as a Copilot, send only what adding the bank account needs, and never send private personal details the Copilot didn't change.
-
In
AddPersonalBankAccountPage/index.tsx, work out whether the submitted personal details differ from the saved ones, next to the existinghasPhoneNumberChange(L107):const currentAddress = getCurrentAddress(privatePersonalDetails); const hasPersonalDetailsChange = hasPhoneNumberChange || (!!personalBankAccount?.legalFirstName && personalBankAccount.legalFirstName !== privatePersonalDetails?.legalFirstName) || (!!personalBankAccount?.legalLastName && personalBankAccount.legalLastName !== privatePersonalDetails?.legalLastName) || (!!personalBankAccount?.addressStreet && personalBankAccount.addressStreet !== getStreetLines(currentAddress?.street).at(0)); -
Pass a flag to
addPersonalBankAccountso a Copilot's request leaves out the private personal details:const {isActingAsDelegate} = useDelegateNoAccessState(); ... addPersonalBankAccount(getAccountData(), personalPolicyID, {shouldOmitPersonalDetails: isActingAsDelegate && !hasPersonalDetailsChange});// BankAccounts.ts if (shouldOmitPersonalDetails) { // The owner's saved details are used; a Copilot can't change them delete parameters.phoneNumber; delete parameters.legalFirstName; delete parameters.legalLastName; delete parameters.addressStreet; delete parameters.addressStreet2; delete parameters.addressCity; delete parameters.addressState; delete parameters.addressZip; delete parameters.addressCountry; }addressNamestays, because it is the bank account's own holder name. -
If a Copilot did enter or change personal details (the owner has none saved, or the Copilot edited them), the request would still be rejected. In that case, show the standard Copilot modal on the confirmation step, before anything is sent, instead of a server error at the end:
if (currentPageName === SUB_PAGE_NAMES.CONFIRMATION) { if (isActingAsDelegate && hasPersonalDetailsChange) { showDelegateNoAccessModal(); return; } ... }Unlike the reverted commit, this only blocks the case the server rejects anyway. A Copilot adding a bank account to an account with saved details goes straight through, which is the expected result here.
-
Before implementing, confirm with an internal engineer that
AddPersonalBankAccountsucceeds for a limited Copilot when the personal detail fields are left out. If the backend rejects the command itself for Copilots, the fix belongs on the backend, and only step 3's early modal is useful in the App.
What alternative solutions did you explore? (Optional)
- Backend only: let limited Copilots save private personal details through
AddPersonalBankAccount. That makes this flow less strict than Profile > Private, and the magic code would still go to the owner, so the Copilot couldn't finish a phone number change anyway. - Re-apply the reverted commit as is: it blocks every Copilot whose details "changed", but the App can't do better than the server there. It also doesn't fix the common case where the details are already saved, which is this issue.
Automated Tests
In tests/unit/pages/AddPersonalBankAccountPageTest.tsx:
- Given a Copilot, and an owner with a saved name, address and phone. When they confirm. Then
AddPersonalBankAccountis called without the personal detail params and no "no access" modal is shown. - Given a Copilot who changed the phone number. When they confirm. Then the delegate "no access" modal is shown and no request is sent.
- Given the owner, not a Copilot. When they confirm. Then the request still includes all personal detail params, as today.
Proposal
Please re-state the problem that we are trying to solve in this issue.
A limited Copilot acting on behalf of a primary user can complete all intermediate Plaid steps in Wallet > Add personal bank account, but is blocked at the final confirmation step with the server warning: "You have not been given permission to take this action as a Copilot for (user A's email)".
What is the root cause of that problem?
The final submission triggers AddPersonalBankAccount (src/libs/actions/BankAccounts.ts:594-613), which merges and sends the primary user's private personal details (legalFirstName, legalLastName, addressStreet, phoneNumber, etc.) along with the bank account payload.
Following the merge of PR #70408, frontend Copilot entry guards were removed to allow limited Copilots to add bank accounts. However, recent changes requiring magic code verification for personal detail updates cause the backend to treat AddPersonalBankAccount as an unprivileged mutation of private profile information when executed by a delegate.
The App does not have a frontend Copilot block here (isDelegateAccessRestricted is not called in this flow, and the warning text originates entirely from the server). As MelvinBot verified, the backend authorization on AddPersonalBankAccount is rejecting the delegate execution.
What changes do you think we should make in order to solve the problem?
This is a Backend authorization issue requiring internal engineering resolution:
-
Backend Fix (Primary): Update backend authorization on
AddPersonalBankAccountto permit delegate execution by limited Copilots when adding personal bank accounts on behalf of the account owner, preserving the intended behavior from #70408. -
Frontend Safeguard (If backend requires personal details to remain strictly owner-only): In
src/pages/AddPersonalBankAccountPage/index.tsx, detect if the user is acting as a delegate (isActingAsDelegate). If personal details already exist for the owner, omit unchanged personal profile update parameters fromaddPersonalBankAccountso only the essential bank account credentials are submitted, preventing the delegate permission violation on private profile mutations.
What alternative solutions did you explore? (Optional)
- Reintroducing an upfront client-side Copilot block: Reverting the intentional capability for Copilots to add bank accounts regresses the feature introduced in #70408.
- Pure frontend modal at confirmation: Showing a delegate modal client-side without backend coordination would prematurely block valid delegation workflows.
What automated tests can you add to prevent this from re-occurring?
Add unit tests in tests/unit/pages/AddPersonalBankAccountPageTest.tsx to verify:
- When a delegate submits an existing owner's bank account with unchanged personal details, the submission payload does not mutate protected profile fields.
- When an owner directly submits, all required personal details and bank parameters continue to be included as expected.
Contributor details Your Expensify account email: [email protected] Upwork Profile Link: https://www.upwork.com/freelancers/~01b60d704ba377be83
✅ Contributor details stored successfully. Thank you for contributing to Expensify!
Proposal
Please re-state the problem that we are trying to solve in this issue.
Account - Limited Copilot can't add bank account in Wallet (blocked at the final confirmation step with "You have not been given permission to take this action as a Copilot for [user email]").
What is the root cause of that problem?
When the user confirms adding a personal bank account on the confirmation step, AddPersonalBankAccountPage invokes addPersonalBankAccount:
- In
src/pages/AddPersonalBankAccountPage/index.tsx(lines 158–169),getAccountData()merges the owner's savedprivatePersonalDetails(legalFirstName,legalLastName,addressStreet,addressCity,addressState,addressZipCode,country,phoneNumber) into the payload:return { ...privatePersonalDetails, addressStreet, addressStreet2, addressCity: currentAddress?.city, addressState: currentAddress?.state, addressZipCode: currentAddress?.zip, country: currentAddress?.country, ...personalBankAccount, ...bankAccountWithToken, phoneNumber, }; - In
src/libs/actions/BankAccounts.ts(lines 594–613),addPersonalBankAccountpackages and transmits these fields in theAddPersonalBankAccountAPI command:phoneNumber: account?.phoneNumber, legalFirstName: account?.legalFirstName, legalLastName: account?.legalLastName, addressStreet: account?.addressStreet, ... - The backend treats these parameters as updates to the user's private personal details (which now require owner authorization / magic code verification following recent security enhancements). In Expensify, limited Copilots are strictly restricted from mutating an account owner's private personal details.
- When a limited Copilot adds a bank account for an owner who already has verified personal details saved, the personal info substeps are skipped (
getSkippedStepsPersonalInfo). The Copilot is only connecting the bank account via Plaid, yet the frontend re-submits the owner's private personal details in the write command. The backend interprets this as an unauthorized delegate update to private profile data and rejects the request with the Copilot permission error banner.
What changes do you think we should make in order to solve the problem?
-
Detect whether personal details have actually changed in
AddPersonalBankAccountPage/index.tsx: CalculatehasPersonalDetailsChangealongside the existinghasPhoneNumberChange:const currentAddress = getCurrentAddress(privatePersonalDetails); const hasPersonalDetailsChange = hasPhoneNumberChange || (!!personalBankAccount?.legalFirstName && personalBankAccount.legalFirstName !== privatePersonalDetails?.legalFirstName) || (!!personalBankAccount?.legalLastName && personalBankAccount.legalLastName !== privatePersonalDetails?.legalLastName) || (!!personalBankAccount?.addressStreet && personalBankAccount.addressStreet !== getStreetLines(currentAddress?.street).at(0)); -
Omit unchanged private personal details when acting as a delegate: Use
useDelegateNoAccessState:const {isActingAsDelegate, showDelegateNoAccessModal} = useDelegateNoAccessState();When submitting, pass
shouldOmitPersonalDetails: isActingAsDelegate && !hasPersonalDetailsChangetoaddPersonalBankAccount:addPersonalBankAccount(getAccountData(), personalPolicyID, { shouldOmitPersonalDetails: isActingAsDelegate && !hasPersonalDetailsChange, }); -
In
src/libs/actions/BankAccounts.ts: WhenshouldOmitPersonalDetailsis true, omit the protected profile update parameters:if (options?.shouldOmitPersonalDetails) { delete parameters.phoneNumber; delete parameters.legalFirstName; delete parameters.legalLastName; delete parameters.addressStreet; delete parameters.addressStreet2; delete parameters.addressCity; delete parameters.addressState; delete parameters.addressZip; delete parameters.addressCountry; }(Note:
addressNameremains intact because it represents the account holder name on the bank account). -
Upfront delegate modal guard for edited details: If a Copilot did edit or input new personal details (which the server will inevitably reject), intercept the confirmation click in
AddPersonalBankAccountPage:if (currentPageName === SUB_PAGE_NAMES.CONFIRMATION) { if (isActingAsDelegate && hasPersonalDetailsChange) { showDelegateNoAccessModal(); return; } }This prevents raw server error banners and gracefully informs the delegate using the standard Copilot restriction modal.
What alternative solutions did you explore? (Optional)
- Backend-only changes: Relax backend permissions to allow limited Copilots to modify private personal details via
AddPersonalBankAccount. However, this bypasses the security boundary of private personal details and magic code verification meant for the account owner. - Frontend hard block on bank account flow: Blocking Copilots at the entrance of Wallet > Add bank account regresses PR #70408, which intentionally enabled Copilots to assist owners by connecting bank accounts when the owner's profile details are already established.
Automated Tests
Add unit tests in tests/unit/pages/AddPersonalBankAccountPageTest.tsx:
- Verify that when
isActingAsDelegateis true and personal details are unchanged,addPersonalBankAccountis called withshouldOmitPersonalDetails: trueand does not display the no-access modal. - Verify that when
isActingAsDelegateis true and personal details have been modified,showDelegateNoAccessModal()is triggered and no API call is dispatched. - Verify that when
isActingAsDelegateis false (direct account owner), all personal detail parameters are preserved and submitted as usual.
Manual Tests
- Log in as a limited Copilot for User A (who already has saved personal details).
- Go to Settings > Wallet > Add bank account.
- Complete the Plaid connection substep.
- On the Confirmation step, verify that clicking Confirm successfully links the bank account without encountering any permission errors.
- If personal details are modified while acting as a Copilot, verify that clicking Confirm displays the standard Copilot permission modal.
Contributor details
Your Expensify account email: [email protected] Upwork Profile Link: https://www.upwork.com/freelancers/~0105126232377c4c5c
✅ Contributor details stored successfully. Thank you for contributing to Expensify!
Proposal
Please re-state the problem that we are trying to solve in this issue.
When a user with limited Copilot access switches to the primary user's account (User A), navigates to Wallet > Add bank account, and completes the personal bank account setup steps, clicking Confirm on the final step fails with the server error: "You have not been given permission to take this action as a Copilot for (user A's email).".
What is the root cause of that problem?
- In
src/pages/AddPersonalBankAccountPage/index.tsx:158-169,getAccountData()always merges the account owner's savedprivatePersonalDetails(legalFirstName,legalLastName,addressStreet,addressStreet2,addressCity,addressState,addressZipCode,country, andphoneNumber) into the payload passed toaddPersonalBankAccount:return { ...privatePersonalDetails, addressStreet, addressStreet2, addressCity: currentAddress?.city, addressState: currentAddress?.state, addressZipCode: currentAddress?.zip, country: currentAddress?.country, ...personalBankAccount, ...bankAccountWithToken, phoneNumber, }; - In
src/libs/actions/BankAccounts.ts:594-613,addPersonalBankAccountsends all of those fields as parameters to theAddPersonalBankAccountAPI command (legalFirstName,legalLastName,addressStreet,addressStreet2,addressCity,addressState,addressZip,addressCountry,phoneNumber). - PR
#70408intentionally removed the frontend Copilot guards so limited Copilots can add a personal bank account on Wallet. Furthermore, when the owner already has saved personal details,getSkippedStepsPersonalInfo(privatePersonalDetails)(AddPersonalBankAccountPage/index.tsx:173) skips the Legal Name, Date of Birth, Address, and Phone Number substeps completely. - However, because
addPersonalBankAccountstill transmits the private personal detail fields inAddPersonalBankAccount, the backend treats the request as an attempt by a limited Copilot to update User A's private personal details (which requires owner authority / magic code verification) and rejects the command with the Copilot permission error.
What changes do you think we should make in order to solve the problem?
-
In
src/pages/AddPersonalBankAccountPage/index.tsx:- Check whether the user is acting as a Copilot (
const {isActingAsDelegate, showDelegateNoAccessModal} = useDelegateNoAccessState();) and whether any personal details were actually entered or modified compared toprivatePersonalDetails(hasPersonalDetailsChange, alongside the existinghasPhoneNumberChangeat line107):const currentAddress = getCurrentAddress(privatePersonalDetails); const [savedStreet, savedStreet2] = getStreetLines(currentAddress?.street); const effectiveSavedStreet2 = savedStreet2 ?? currentAddress?.street2 ?? currentAddress?.addressLine2 ?? ''; const hasPersonalDetailsChange = hasPhoneNumberChange || (!!personalBankAccount?.legalFirstName && personalBankAccount.legalFirstName !== privatePersonalDetails?.legalFirstName) || (!!personalBankAccount?.legalLastName && personalBankAccount.legalLastName !== privatePersonalDetails?.legalLastName) || (!!personalBankAccount?.addressStreet && personalBankAccount.addressStreet !== savedStreet) || (!!personalBankAccount?.addressStreet2 && personalBankAccount.addressStreet2 !== effectiveSavedStreet2) || (!!personalBankAccount?.addressCity && personalBankAccount.addressCity !== currentAddress?.city) || (!!personalBankAccount?.addressState && personalBankAccount.addressState !== currentAddress?.state) || (!!personalBankAccount?.addressZipCode && personalBankAccount.addressZipCode !== currentAddress?.zip); - On the Confirmation step (
handleNext, line206), ifisActingAsDelegate && hasPersonalDetailsChange, callshowDelegateNoAccessModal()and return early instead of sending an unauthorized personal-details update. - When
isActingAsDelegate && !hasPersonalDetailsChange, pass{shouldOmitPersonalDetails: true}toaddPersonalBankAccount(getAccountData(), personalPolicyID, {shouldOmitPersonalDetails: isActingAsDelegate && !hasPersonalDetailsChange}).
- Check whether the user is acting as a Copilot (
-
In
src/libs/actions/BankAccounts.ts(addPersonalBankAccount, lines 587-615):- Accept
shouldOmitPersonalDetails?: booleanin the options object. WhenshouldOmitPersonalDetailsistrue, omit the private personal detail mutation fields (phoneNumber,legalFirstName,legalLastName,addressStreet,addressStreet2,addressCity,addressState,addressZip,addressCountry) fromparameterswhile keeping the bank account fields (accountNumber,routingNumber,plaidAccountID,plaidAccessToken,bankName,addressName, etc.).
- Accept
-
Add unit tests in
tests/unit/pages/AddPersonalBankAccountPageTest.tsx:- Verify that when a Copilot confirms a bank account for an owner with existing saved personal details (
!hasPersonalDetailsChange),AddPersonalBankAccountomits the private personal detail parameters and succeeds without showing the no-access modal. - Verify that when a Copilot modifies personal details (
hasPersonalDetailsChange),showDelegateNoAccessModalis triggered on confirmation.
- Verify that when a Copilot confirms a bank account for an owner with existing saved personal details (
What alternative solutions did you explore? (Optional)
- Blocking limited Copilots at the start of the Add Bank Account flow: Rejected because PR
#70408and test caseTC-41236699explicitly expect limited Copilots to be allowed to add a personal bank account in Wallet.
@thelullabyy Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
@thelullabyy Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
@thelullabyy Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
Proposal
Please re-state the problem that we are trying to solve in this issue.
When a user with Limited Copilot access switches into the primary user's account (User A), navigates to Account > Wallet > Add bank account, and completes the Plaid bank selection steps, clicking Confirm on the final confirmation step fails with the server error "You have not been given permission to take this action as a Copilot for (user A's email).".
What is the root cause of that problem?
- Although PR
#70408removed the client-side Copilot entry guards on the Wallet page so limited Copilots can add personal bank accounts,src/pages/AddPersonalBankAccountPage/index.tsx(lines 158–169,getAccountData()) unconditionally merges the primary user's savedprivatePersonalDetails(legalFirstName,legalLastName,addressStreet,addressStreet2,addressCity,addressState,addressZipCode,country, andphoneNumber) into the payload passed toaddPersonalBankAccount(src/libs/actions/BankAccounts.ts, lines 594–613). - When
AddPersonalBankAccountreceives those personal detail fields in the API request, the backend attempts to update the primary account owner's private personal details, which a Limited Copilot does not have permission to modify, causing the entireAddPersonalBankAccountrequest to be rejected with the Copilot permission error.
What changes do you think we should make in order to solve the problem?
- In
src/pages/AddPersonalBankAccountPage/index.tsx(around lines 158–169) andsrc/libs/actions/BankAccounts.ts(addPersonalBankAccount, lines 594–613), check whether the current user is acting as a Limited Copilot (isActingAsDelegatewithdelegatedAccess?.delegatehavingCONST.DELEGATE.ROLE.LIMITED) or only include personal details fields inAddPersonalBankAccountwhen they are actually required/edited during setup rather than resending pre-existingprivatePersonalDetails. - In
src/libs/API/parameters/AddPersonalBankAccountParams.ts, allow the personal details fields (addressStreet,addressCity,addressState,addressZipCode,phoneNumber,legalFirstName,legalLastName,country) to be optional when submitting Plaid bank account data as a Limited Copilot.
What alternative solutions did you explore? (Optional)
We considered blocking Limited Copilots from the Add bank account button on the Wallet page, but PR #70408 explicitly established that Limited Copilots should be able to add personal bank accounts on behalf of the primary user.
📣 @jeffrey-graham! 📣 Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork. Please follow these steps:
- Make sure you've read and understood the contributing guidelines.
- Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
- Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
- Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>
@thelullabyy I think this is a Backend-only issue.
I tested stripping all personal detail fields from AddPersonalBankAccount, and the backend still rejects the request with the same Copilot permission error.
The command itself is blocked for Copilots on the backend. I think no App change can fix this.
📣 @ronanchnlps-bit! 📣 Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork. Please follow these steps:
- Make sure you've read and understood the contributing guidelines.
- Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
- Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
- Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>
On my plate today
Triggered auto assignment to @luacmartins, see https://stackoverflow.com/c/expensify/questions/7972 for more details.