Servicenow SAM integration

Trying to integrate Confluence with ServiceNow for asset maangement by following the documentation:https://www.servicenow.com/docs/bundle/zurich-it-asset-management/page/product/software-asset-management2/concept/integrate-with-confluence-cloud.html

I am getting 401 unauthorized error from Confluence even though account i am usign is org admin and site admin.

Has anyone run into this issue?