I am using ArcGIS JavaScript SDK to export the map to PDF. I do not have any issues the service shared with everyone, when i tried to share it to organization, it is throwing an error " Failed to create layer from service ".
Print service is also shared with organization. is there a way to pass the credentials or token ?