Smart User Picker - 403 Forbidden while fetching recommendations

Hi,

I’m developing cloud app for confluence. I wanted to use smart-user-picker, however I’m getting 403 Forbidden error while smart picker is trying to fetch recommendations from /gateway/api/v1/recommendations. Select is displaying blank options just like this:

obraz

obraz219×344 3.62 KB

I’m using minimal configuration options with siteId beeing retrieved from /_edge/tenant_info.

obraz

obraz617×665 68.3 KB

Is there any additional action, or configuration required for this to work?

I’m getting 403 Forbidden error while smart picker is trying to fetch recommendations from /gateway/api/v1/recommendations.

Isn’t that URL for one of Atlassian’s INTERNAL API endpoints?

If not, can you provide a link to the documentation that describes that endpoint and how to access and authenticate against it.

Yes, it appears to be a private/internal endpoint used by Atlassian. In my case, I’m not calling it directly - it gets triggered automatically when I click on the select component and the dropdown opens. Could it be that some additional app descriptor configuration is required for this call to succeed?

Here are the docs, but nothing about this API

And in the package changelog it says it uses the Teams API as the source of its data, so I wonder how that internal API endpoint is getting involved?

{
    "editmeta": {
        "fields": {
            "customfield_10001": {
                "required": false,
                "schema": {
                    "type": "any",
                    "custom": "com.atlassian.teams:rm-teams-custom-field-team",
                    "customId": 10001,
                    "configuration": {
                      "com.atlassian.jira.plugin.system.customfieldtypes:atlassian-team": true
                    }
                },
                "name": "Team",
                "key": "customfield_10001",
                "autoCompleteUrl": "https://your.jira.site/gateway/api/v1/recommendations",
                "operations": [
                    "set"
                ]
            }
        }
    }
}

autoCompleteUrl seems to be related

1 Like