Solved

sybase, how do we check what privileges granted or cover by role ?

Posted on 2013-06-19
2
1,976 Views
Last Modified: 2013-07-15
I have a following user which have been granted with user define role, but I have  difficulties to understands what is inside the role. Can someone tell me how do we check what is inside user_sa_role


1> sp_displayroles 'trwkry'
2>
 Role Name
 ------------------------------
 user_sa_role

1>
1> sp_displayroles 'user_sa_role','expand_up'
2>
 Role Name                      Parent Role Name               Level
 ------------------------------ ------------------------------ ------

(0 rows affected)
(return status = 0)
1>
1>
1>
1> sp_displayroles user_sa_role,'expand_down'
2>
 Role Name                      Parent Role Name               Level
 ------------------------------ ------------------------------ ------
 sa_role                        user_sa_role                        1
 sso_role                       user_sa_role                        1

(2 rows affected)
(return status = 0)
1>
1>
1>
1> sp_displayroles user_sa_role
2>
 Role Name
 ------------------------------
 sa_role
 sso_role

(2 rows affected)
(return status = 0)
1> sp_displayroles
2>
 Role Name
 ------------------------------
 sa_role
 sso_role
 oper_role
 mon_role

(4 rows affected)
(return status = 0)
1>
0
Comment
Question by:motioneye
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 13

Accepted Solution

by:
alpmoon earned 250 total points
ID: 39261317
I think you have received the information you needed. user_sa_role has been created to combine sa_role and sso_role. When you grant user_sa_role to a user, that user will have both sa_role and sso_role.
0
 
LVL 24

Assisted Solution

by:Joe Woodhouse
Joe Woodhouse earned 250 total points
ID: 39261670
The other part of the question is to run "sp_helprotect" to see what permissions the role is granting on objects. It won't show permissions to run commands though, which it is inheriting from the system roles.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
This article outlines some of the reasons why an email message gets flagged as spam on a recipient's end.
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question