Skip to main content
Solved

New method automaticly be granted


Forum|alt.badge.img+2

Hi guys,

    I have a question about permission set.I created a new method, and after refreshing the dictionary i found that this method has been added in serveal permission sets.Could you please tell me why is it granted?

Thank you!

 

Best answer by durette

Database object grants are stored in two tables:

  • One table stores grants for whole packages.
  • One table stores revocations for package methods (procedures and functions).

To access a package method, the permission set must be granted permission on the package itself, and there must not exist a revocation for that permission set against that particular method. By default, this opens up the whole package until the methods are then individually revoked.

Since no record will exist for a new method before it’s added to a package, it will be automatically granted to any permission sets that access to the package itself.

View original
Did this topic help you find an answer to your question?

4 replies

  • Superhero (Employee)
  • 1471 replies
  • March 24, 2020

From your screenshot it doesn’t look like it’s granted? 


Forum|alt.badge.img+2
  • Author
  • Do Gooder
  • 2 replies
  • March 26, 2020
anmise wrote:

From your screenshot it doesn’t look like it’s granted? 

Thanks for your reply.

It has been granted in other permission sets.

I haven’t granted it after creating the new method,  then it has been granted.

I want to know why it is automaticly granted.


durette
Superhero (Customer)
Forum|alt.badge.img+19
  • Superhero (Customer)
  • 539 replies
  • Answer
  • March 26, 2020

Database object grants are stored in two tables:

  • One table stores grants for whole packages.
  • One table stores revocations for package methods (procedures and functions).

To access a package method, the permission set must be granted permission on the package itself, and there must not exist a revocation for that permission set against that particular method. By default, this opens up the whole package until the methods are then individually revoked.

Since no record will exist for a new method before it’s added to a package, it will be automatically granted to any permission sets that access to the package itself.


Forum|alt.badge.img+2
  • Author
  • Do Gooder
  • 2 replies
  • March 30, 2020
durette wrote:

Database object grants are stored in two tables:

  • One table stores grants for whole packages.
  • One table stores revocations for package methods (procedures and functions).

To access a package method, the permission set must be granted permission on the package itself, and there must not exist a revocation for that permission set against that particular method. By default, this opens up the whole package until the methods are then individually revoked.

Since no record will exist for a new method before it’s added to a package, it will be automatically granted to any permission sets that access to the package itself.

Thank you! It helps me a lot!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings