How to add non-admin user access for inked servers

Introduction

When you create a linked server, the connection succeeds, but the query fails. By default, non-admin users do not have access to a Linked Server in SQL Server. When such users attempt to query a Linked Server, they may encounter errors similar to the following:

This issue occurs because the Linked Server does not have a login mapping configured for the user executing the query.

Cause

A Linked Server in SQL Server is treated similarly to a database for security purposes. Access is not automatically granted to all users.

1. Non-admin users do not inherit access to Linked Servers by default.
2. No login mapping exists between the local SQL Server login and the remote Linked Server credentials.
3. SQL Server cannot determine which remote credentials to use when the user connects.

For admin users, SQL Server often uses the default option “Be made using this security context”, which allows access without additional configuration.

Solution

To resolve this issue, you must explicitly map the local login to a remote login for the Linked Server. Follow these steps:
  1. Remove any existing incorrect login mapping (optional but recommended)
  2. Create a new login mapping for the Linked Server:
  3. Verify the configuration:
    – Open Linked Server Properties in SQL Server Management Studio (SSMS).
    – Go to the Security tab.
    – Confirm that your local login is mapped to the correct remote user.

    Linked server – security tab

  4. Test the Linked Server query again using the non-admin user.
After completing these steps, SQL Server will use the specified remote credentials when the mapped user accesses the Linked Server.

Conclusion

Non-admin users cannot access Linked Servers by default because no login mapping is defined. SQL Server requires explicit credential mapping to determine which remote account to use.
By configuring login mappings using sp_addlinkedsrvlogin, you can grant controlled access to Linked Servers and ensure queries execute successfully without connection errors.

Still need help?

If the issue persists, please get in touch with our support team:
  • Live Chat: Open the chat widget (bottom right of this page)
  • Email: support@zappysys.com
  • Support Center: https://zappysys.com/support/
Posted in ODBC Gateway.