I need to change the named credential url in the managed package. But it is not possible when we install the package in another org. Is there any possibility to do that? Thanks


Unfortunately, you can't. Editing Components and Attributes After Installation has this to say about Named Credentials:

Developer Editable

  • Endpoint
  • Label

Subscriber and Developer Editable

  • Allow Merge Fields in HTTP Body
  • Allow Merge Fields in HTTP Header
  • Auth Provider
  • Certificate
  • Generate Authorization Header
  • Identity Type
  • OAuth Scope
  • Password
  • Protocol
  • Username


  • Name

As you can see, only the Developer is allowed to edit the endpoint/URL.

  • Thanks @sfdxfox. So I think I need to use remote site setting instead of Named Credentials. – Prasad Jan 30 '18 at 3:50
  • 2
    @Prasad They have different purposes. Maybe you could have the subscriber define it as an unmanaged element, which your code should (theoretically) be able to access? – sfdcfox Jan 30 '18 at 3:51
  • 1
    Oof glad I saw this. I'm working on a managed package project where definitely it was intended that the subscriber be able to edit a Named Credential endpoint. I guess we'll have to try another strategy. – Charles T Jan 30 '18 at 12:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.