IDEA/SUGGESTION: Is it possible to support ownership chaining for stored procedure in synapse.

Keevey Song 6 Reputation points Microsoft Employee
2021-08-26T02:12:23.56+00:00

Synapse product group confirmed that ownership chain is not supported in synapse, thus i was wondering if it is possible to support this feature in the further. Thank you for your attention.

Here is the example for your reference
If I used the server admin to create a view and a store procedure:

CREATE VIEW dbo.PV1
AS
SELECT * FROM [Sales].[Customer] ------ this is for different schema

CREATE PROCEDURE dbo.PP1
AS
SELECT * FROM [Sales].[Customer] ------ this is for different schema

Then grant the below permission on another user:

GRANT SELECT ON OBJECT::dbo.PV1 TO PTest

GRANT EXECUTE ON OBJECT::dbo.PP1 TO PTest

Then login with that user and execute the below script:

SELECT * FROM [dbo].[PV1] ----- working

EXEC dbo.PP1 ----- doesn't work, failed with permission errors: The SELECT permission was denied on the object 'CUSTOMER', database 'NA', schema 'SALES'.

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,378 questions
{count} vote

1 answer

Sort by: Most helpful
  1. HimanshuSinha-msft 19,491 Reputation points Microsoft Employee Moderator
    2021-09-03T17:50:28.99+00:00

    Hello @Keevey Song ,

    I just heard from the internal team and they confirmed that they do have plans to imlement this in future . I am unable to share any tenatative dates at thsi time .

    Thanks
    Himanshu

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.