Xero Integration issues following Xero change to granular scope

Hello,

I am relatively new to Activepieces and have been attempting to integrate with Xero and have hit an issue.

When trying to connect to Xero using the standard method I receive the following message

My understanding from a bit of searching is that Active pieces need to request an increase in connections. However in the mean time you can ‘Try Another Method’ and use a ‘Custom OAuth2 App (Advanced)’ which either bypasses or does not count toward the connection limit.

After entering the Client ID and Client Secret from the Xero Developer platfrom and attempting to connect I receive the following error.

After further research it appears that Xero have changed their Accounting API to use more granular scopes.

Existing connections will not be affected currently however it does affect new connections as the 12 scopes that are presented by Activepieces do not match those now in Xero for new connections. Specifically ‘accounting.transactions’ and ‘accounting.reports.read’ which are now deprecated and have been replaced with more granular alternatives.

  • openid
  • profile
  • email
  • offline_access
  • accounting.contacts
  • accounting.transactions - deprecated
  • accounting.reports.read - deprecated
  • accounting.journals.read
  • accounting.budgets.read
  • accounting.attachements
  • accounting.settings
  • projects

However, when trying to connect and only selecting a subset of of the scope above i have had mixed results. If I select those in italics above,then I am able to connect successfully, however if I select either of the two deprecated scopes, or ‘accounting journals.read’ it fails error code 500 Invalid Scope.

I am unable to manually enter or edit the scope I am only able to select or deselect options.

Has any one else had the same issue, and found a work around?

How do I inform Activepieces of this issue.

Best Regards

Simon

Hello @simon-ingham , Welcome to the community :waving_hand: ,

Thanks for reporting this. We’ll update the scopes for the pieces first, and then we’ll update our OAuth2 app to support more connections.