Error "1009: No Access to Credential" How to Solve

The error code “1009: No access to credential” indicates that there is a problem when accessing the credential. This issue is not just related to the credential being modified or created but extends to all credentials that are referenced in the API call.

See the following example:


{

"username": "API_CREDENTIAL_2",

"hostname": "API_DEVICE_1",

"ip": "localhost",

"execution_settings" : {

"automatic_change" : true,

"agent_based_password_change": false,

"change_plugin": "SSH",

"change_template": "3COM",

"use_own_credential_to_connect": false,

"authentication_credential": "API_CREDENTIAL_1",

"authentication_hostname": "API_DEVICE_1",

"authentication_ip": "localhost"

}

}

In this example, the user making the “POST” call is trying to modify “API_CREDENTIAL_2”. Therefore, this user must have access to both “API_CREDENTIAL_2” and “API_CREDENTIAL_1” since both are referenced in the API call.

Therefore, to resolve this error, make sure that the authorization used in the API call has adequate access to all the mentioned credentials.