?
Solved

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

Posted on 2013-06-19
2
Medium Priority
?
2,136 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 1000 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 1000 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

Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card.

Question has a verified solution.

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

If you're a modern-day technology professional, you may be wondering if certifications are really necessary. They are. Here's why.
Ready to get certified? Check out some courses that help you prepare for third-party exams.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

762 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