I have previously used Crowd to maintain my user directories for Jira, Confluence and Bitbucket, but it seems overkill for what I need, so am planning to revert to using Jira as the User Directory Server.
I have set up my Jira User Server and added Confluence and Bitbucket as Applications with permitted IP addresses.
When attempting to add the Jira User Directory to either Confluence or Bitbucket, I get the following error:
javax.xml.bind.UnmarshalException - with linked exception: [org.xml.sax.SAXParseException; lineNumber: 78; columnNumber: 26; The entity name must immediately follow the '&' in the entity reference.]
The configuration is as follows (URL anonymised). The Application Password contains only alphanumerics (no special characters).

Trying a direct URL call to
https://jira.domain.uk/jira/rest/usermanagement/1/search?entity-type=user&start-index=0&max-results=1&expand=user
gives me an authentication dialog box in the browser.