function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Daniel Grabowski 9Daniel Grabowski 9 

Named Credential Permission on Profile/Permission Set

I have a Named Credential for an API callout to JIRA.  I gave myself access via Settings -> Authentication Settings for External Systems, and I am able to do callotus just fine.  

So that I don't have to do this with every user, I tried adding the same Named Credential via Profile/Permission Set -> Enabled Named Credential Access.  I get an error that the user does not have permission to view the data.

I confirmed with SF support that I did this correctly, but the permission is not recognized.  Any idea what could be wrong here?
Best Answer chosen by Daniel Grabowski 9
VinayVinay (Salesforce Developers) 
Hi Daniel,

Try the workaround mentioned in below links and see how it works.

https://salesforce.stackexchange.com/questions/306399/auth-provider-with-per-user-named-credential
https://salesforce.stackexchange.com/questions/102484/use-of-named-credentials-seem-to-be-tied-to-external-data-source

Thanks,
Vinay Kumar

All Answers

VinayVinay (Salesforce Developers) 
Hi Daniel,

Try the workaround mentioned in below links and see how it works.

https://salesforce.stackexchange.com/questions/306399/auth-provider-with-per-user-named-credential
https://salesforce.stackexchange.com/questions/102484/use-of-named-credentials-seem-to-be-tied-to-external-data-source

Thanks,
Vinay Kumar
This was selected as the best answer
Daniel Grabowski 9Daniel Grabowski 9
Thanks for the suggestion.  It turns out my Named Credential was configured wrong.  I needed to use Identity Type = 'Named Principal' instead of 'Per User'