Showing posts with label group. Show all posts
Showing posts with label group. Show all posts

Friday, March 30, 2012

Role Based Security and Child Groups

Hi All,

I have a report running and I am attempting to assign role based security. I added a group to the site level security. The group I added contains child groups. It doesn't seem that report server is looking into the child groups to see if the logged in user is a member of the child group. Is there anyway to get this to work instead of adding all the groups directly? I suspect that report server is using cominterop and cominterop is not traversing the directory tree?

Thanks,

Darren

Interestingly, if you add a group to a report server that contains logins, then remove that group from Management Studio, everyone in the group still has access to the reports.

DD

Role Based Security and Child Groups

Hi All,

I have a report running and I am attempting to assign role based security. I added a group to the site level security. The group I added contains child groups. It doesn't seem that report server is looking into the child groups to see if the logged in user is a member of the child group. Is there anyway to get this to work instead of adding all the groups directly? I suspect that report server is using cominterop and cominterop is not traversing the directory tree?

Thanks,

Darren

Interestingly, if you add a group to a report server that contains logins, then remove that group from Management Studio, everyone in the group still has access to the reports.

DD

Role Assignment Group Question

My home folder gives Everyone access to the Browser role. Then I have a
Test folder that contains a Test Report.
I created a TestUser and added them to a TestGroup.
The problem is that the TestUser cannot see my TestReport.
I removed Everyone from the TestReport. TestFolder still has Everyone as a
Browser role assignment. Then I added in my TestGroup, which TestUser is
a part of. I can't figure out why my TestUser can't see the report.
Of course if I leave Everyone on the TestReport then the TestUser can see
it, or if I add the TestUser individually to the Browser role, then he
can see the report. I tried adding both domain\TestGroup and TestGroup
by itself for a role assignment and neither worked.
Does anyone have any ideas?
-RandyIt appears that there might be a bug. It seems to work as documented when
using groups with no spaces in the name. When a group name contains a
space, I haven't been able to get reporting services to recognise the
group.
-Randy
"Randy" <randyvATitolDOTcom> wrote in message
news:eTr6gezbEHA.2388@.TK2MSFTNGP11.phx.gbl...
> My home folder gives Everyone access to the Browser role. Then I have a
> Test folder that contains a Test Report.
> I created a TestUser and added them to a TestGroup.
> The problem is that the TestUser cannot see my TestReport.
> I removed Everyone from the TestReport. TestFolder still has Everyone as
a
> Browser role assignment. Then I added in my TestGroup, which TestUser
is
> a part of. I can't figure out why my TestUser can't see the report.
> Of course if I leave Everyone on the TestReport then the TestUser can see
> it, or if I add the TestUser individually to the Browser role, then he
> can see the report. I tried adding both domain\TestGroup and
TestGroup
> by itself for a role assignment and neither worked.
> Does anyone have any ideas?
> -Randy
>

Monday, March 26, 2012

Rights to execute jobs?

Hello!
We're trying to lock down our environments (dev, qa, uat). One requirement
is that a group needs to not be an admin but still be able to execute any
job. I've looked and looked, but I haven't yet been able to find a good
resource for job execution permissions. I know that a job owner can execute
a
job, but our standard is to make all jobs owned by SA. So, can somebody
outline what permissions are required in order for a non-sysadmin to run a
job not owned by themselves? Is that possible? It occurs to me that I may be
able to do this by making a stored proc to execute a passed-in job name.
Since procs execute anything inside it (only permissions needed are to the
proc itself), this may work. I'd like to avoid this, though, and let them ru
n
through EM.
Thanks for the help!Brian,
Are you running SQL2000 or SQL2005? It looks like 2000 because you mentioned
EM. We, just moving up to SQL2005, have a similar problem and have created
an SQL login to run jobs. A Windows group cannot own a job and so, as you
say, cannot create jobs with other owners unless it is a sysadmin. If
running with a created SQL Login seems okay to you I can detail the
permissions that we are giving.
Chris
"Brian Laws" <BrianLaws@.discussions.microsoft.com> wrote in message
news:AA330618-DB8C-48E9-A43B-BCD1C9053EF1@.microsoft.com...
> Hello!
> We're trying to lock down our environments (dev, qa, uat). One requirement
> is that a group needs to not be an admin but still be able to execute any
> job. I've looked and looked, but I haven't yet been able to find a good
> resource for job execution permissions. I know that a job owner can
> execute a
> job, but our standard is to make all jobs owned by SA. So, can somebody
> outline what permissions are required in order for a non-sysadmin to run a
> job not owned by themselves? Is that possible? It occurs to me that I may
> be
> able to do this by making a stored proc to execute a passed-in job name.
> Since procs execute anything inside it (only permissions needed are to the
> proc itself), this may work. I'd like to avoid this, though, and let them
> run
> through EM.
> Thanks for the help!|||Yes, SQL2000. In SQL 2005 there are the new roles in the MSDB database which
will grant rights, but I need something similar in 2000. Since we're using
Windows Authentication, we can't just have a shared SQL login. I could creat
e
a new account in common, but then there's no accountability. Plus, the user
would then have to be the owner of the job, which breaks away from standards
and makes development different from production.
"Chris Wood" wrote:

> Brian,
> Are you running SQL2000 or SQL2005? It looks like 2000 because you mention
ed
> EM. We, just moving up to SQL2005, have a similar problem and have created
> an SQL login to run jobs. A Windows group cannot own a job and so, as you
> say, cannot create jobs with other owners unless it is a sysadmin. If
> running with a created SQL Login seems okay to you I can detail the
> permissions that we are giving.
> Chris
> "Brian Laws" <BrianLaws@.discussions.microsoft.com> wrote in message
> news:AA330618-DB8C-48E9-A43B-BCD1C9053EF1@.microsoft.com...
>
>|||Brian,
One way to let users in a DEV environment be able to start jobs is to
trigger them through alerts. But I do not believe you can control who can
raise the alert, so it could be anyone on the server.
You can add an alert something like this:
EXEC msdb.dbo.sp_add_alert @.name=N'Start My #1 Job',
@.message_id=50101,
@.severity=0,
@.enabled=1,
@.database_name=N'FavoriteDB',
@.job_name=N'My #1 Job'
Of course, you need to define the messages (e.g. 50101) in sysmessages and
so forth, but the user only has to do a RAISERROR with the proper message
number, and the alert will start the job. You can put that in a procedure,
or whatever works best for you.
If this is good enough for you, it leaves your job definitions in
development and production just alike. Only, in production you would
probably not define the alerts.
RLF
"Brian Laws" <BrianLaws@.discussions.microsoft.com> wrote in message
news:E24E82B3-531F-4FA7-B91B-69783DD7EE7B@.microsoft.com...[vbcol=seagreen]
> Yes, SQL2000. In SQL 2005 there are the new roles in the MSDB database
> which
> will grant rights, but I need something similar in 2000. Since we're using
> Windows Authentication, we can't just have a shared SQL login. I could
> create
> a new account in common, but then there's no accountability. Plus, the
> user
> would then have to be the owner of the job, which breaks away from
> standards
> and makes development different from production.
> "Chris Wood" wrote:
>|||This is a method that we use in our SQL2005 servers so that lower level
users can get admin type jobs going. As Russell mentions you need a step in
your job that performs a RAISERROR with a high enough severity level and
with no logging specified. The alert then fires off your job that runs under
a higher user.
Chris
"Russell Fields" <russellfields@.nomail.com> wrote in message
news:%23wPjDjq3HHA.4680@.TK2MSFTNGP06.phx.gbl...
> Brian,
> One way to let users in a DEV environment be able to start jobs is to
> trigger them through alerts. But I do not believe you can control who can
> raise the alert, so it could be anyone on the server.
> You can add an alert something like this:
> EXEC msdb.dbo.sp_add_alert @.name=N'Start My #1 Job',
> @.message_id=50101,
> @.severity=0,
> @.enabled=1,
> @.database_name=N'FavoriteDB',
> @.job_name=N'My #1 Job'
> Of course, you need to define the messages (e.g. 50101) in sysmessages and
> so forth, but the user only has to do a RAISERROR with the proper message
> number, and the alert will start the job. You can put that in a procedure,
> or whatever works best for you.
> If this is good enough for you, it leaves your job definitions in
> development and production just alike. Only, in production you would
> probably not define the alerts.
> RLF
> "Brian Laws" <BrianLaws@.discussions.microsoft.com> wrote in message
> news:E24E82B3-531F-4FA7-B91B-69783DD7EE7B@.microsoft.com...
>|||Interesting method. Thanks. I can put that in a stored procedure to make lif
e
easier for people.
Does anyone know if the rules surrounding stored procedure permissions apply
to calling sp_start_job as well? If a user has permissions to run a stored
proc, than anything inside it can be done regardless of whether the user was
granted that access. Does this apply to a proc calling sp_start_job so that
I
can have it kick off a job not owned by that user?
Thanks for your help!
Brian
"Russell Fields" wrote:

> Brian,
> One way to let users in a DEV environment be able to start jobs is to
> trigger them through alerts. But I do not believe you can control who can
> raise the alert, so it could be anyone on the server.
> You can add an alert something like this:
> EXEC msdb.dbo.sp_add_alert @.name=N'Start My #1 Job',
> @.message_id=50101,
> @.severity=0,
> @.enabled=1,
> @.database_name=N'FavoriteDB',
> @.job_name=N'My #1 Job'
> Of course, you need to define the messages (e.g. 50101) in sysmessages and
> so forth, but the user only has to do a RAISERROR with the proper message
> number, and the alert will start the job. You can put that in a procedure,
> or whatever works best for you.
> If this is good enough for you, it leaves your job definitions in
> development and production just alike. Only, in production you would
> probably not define the alerts.
> RLF
> "Brian Laws" <BrianLaws@.discussions.microsoft.com> wrote in message
> news:E24E82B3-531F-4FA7-B91B-69783DD7EE7B@.microsoft.com...
>
>|||The rules still apply when executing sp_start_job.
-Sue
On Thu, 16 Aug 2007 18:17:43 -0700, Brian Laws
<BrianLaws@.discussions.microsoft.com> wrote:
[vbcol=seagreen]
>Interesting method. Thanks. I can put that in a stored procedure to make li
fe
>easier for people.
>Does anyone know if the rules surrounding stored procedure permissions appl
y
>to calling sp_start_job as well? If a user has permissions to run a stored
>proc, than anything inside it can be done regardless of whether the user wa
s
>granted that access. Does this apply to a proc calling sp_start_job so that
I
>can have it kick off a job not owned by that user?
>Thanks for your help!
>Brian
>"Russell Fields" wrote:
>sql

rights issue

How do I text base add my domain users group with full rights to my database. I am using teratrax to manage my database. This is what comes up when I click on new database user

-- Replace all lower case words with your own code.

EXECUTE SP_GRANTDBACCESS 'login', 'user_name'Hi,

with that statement you posted you only grant database access for an user. The user cannot do anything in your database if you don't grant him further permissions. What exactly do you mean with full rights? Systemadministrators' rights? Or are DBOwner-Rights sufficient?

Otherwise you should create a role which has specific rights in your databases and add the users group to that role.

:)|||Yeah DBOWNER would be enough rights. How do I add roles and then how do I add domain users group to them?|||To create a new role use:

sp_addrole [ @.rolename = ] 'role'
[ , [ @.ownername = ] 'owner' ]

in the specific database.

Grant Permissions to that role for each object needed:

GRANT
{ ALL [ PRIVILEGES ] | permission [ ,...n ] }
{
[ ( column [ ,...n ] ) ] ON { table | view }
| ON { table | view } [ ( column [ ,...n ] ) ]
| ON { stored_procedure | extended_procedure }
| ON { user_defined_function }
}
TO security_account [ ,...n ]
[ WITH GRANT OPTION ]
[ AS { group | role } ]

To add a user or group to a role use:

sp_addrolemember [ @.rolename = ] 'role' ,
[ @.membername = ] 'security_account'

in the specific database.

To add a user/group to the db_owner role use:

sp_addrolemember [ @.rolename = ] 'db_owner' ,
[ @.membername = ] 'security_account'

in the specific database.

EDIT: Replace 'security_account' with your domain users name in the database, e.g.: [domainname\groupname]

:)

Friday, March 23, 2012

Right Question?

Hi Group,
I have a question in SQL Server 2000.
The question is, I have a table with 2 millions of records and I want
to fetch the record from 200 to 400 rows and the table doesn't content
any identity cols nor any numeric col all the varchar field. Can you
put some light on it?
Regards
ArijitHi
http://www.aspfaq.com/show.asp?id=2120
<arijitchatterjee123@.yahoo.co.in> wrote in message
news:1154433609.267834.40780@.h48g2000cwc.googlegroups.com...
> Hi Group,
> I have a question in SQL Server 2000.
> The question is, I have a table with 2 millions of records and I want
> to fetch the record from 200 to 400 rows and the table doesn't content
> any identity cols nor any numeric col all the varchar field. Can you
> put some light on it?
> Regards
> Arijit
>|||Hi
To get a number of records in a range you need to be able to order them!!!
Check out http://www.aspfaq.com/show.asp?id=2120 for various techniques that
can be used on SQLServer 7.0 and 2000. For SQL Server 2005 check out the new
ranking and TOP functionality.
John
"arijitchatterjee123@.yahoo.co.in" wrote:

> Hi Group,
> I have a question in SQL Server 2000.
> The question is, I have a table with 2 millions of records and I want
> to fetch the record from 200 to 400 rows and the table doesn't content
> any identity cols nor any numeric col all the varchar field. Can you
> put some light on it?
> Regards
> Arijit
>

Right Question?

Hi Group,
I have a question in SQL Server 2000.
The question is, I have a table with 2 millions of records and I want
to fetch the record from 200 to 400 rows and the table doesn't content
any identity cols nor any numeric col all the varchar field. Can you
put some light on it?
Regards
ArijitHi
http://www.aspfaq.com/show.asp?id=2120
<arijitchatterjee123@.yahoo.co.in> wrote in message
news:1154433609.267834.40780@.h48g2000cwc.googlegroups.com...
> Hi Group,
> I have a question in SQL Server 2000.
> The question is, I have a table with 2 millions of records and I want
> to fetch the record from 200 to 400 rows and the table doesn't content
> any identity cols nor any numeric col all the varchar field. Can you
> put some light on it?
> Regards
> Arijit
>|||Hi
To get a number of records in a range you need to be able to order them!!!
Check out http://www.aspfaq.com/show.asp?id=2120 for various techniques that
can be used on SQLServer 7.0 and 2000. For SQL Server 2005 check out the new
ranking and TOP functionality.
John
"arijitchatterjee123@.yahoo.co.in" wrote:
> Hi Group,
> I have a question in SQL Server 2000.
> The question is, I have a table with 2 millions of records and I want
> to fetch the record from 200 to 400 rows and the table doesn't content
> any identity cols nor any numeric col all the varchar field. Can you
> put some light on it?
> Regards
> Arijit
>

Wednesday, March 21, 2012

richie robles

How do you copy a 'production' database from the same group to a development database. I've been told that a restore is the hot ticket, but I'm afraid of overriding data.

Quote:

Originally Posted by Richie Robles

How do you copy a 'production' database from the same group to a development database. I've been told that a restore is the hot ticket, but I'm afraid of overriding data.


Hi
create a backup of your development database and then do the restore of the production db. Keep the .bak safe somewhere :)

Monday, March 12, 2012

Reusing part of an existing measure group

Hello,

I have a large cube called Sales and inside that a measure group called SalesDetail. I'd like to reuse only a small slice of this cube in another cube, just 1 product subcategory in fact to meet that specific departments needs. They only want a subset of dimensions and only their data. Would perspectives allow filtering of data, i don't think so...

Rather than creating another view over the fact, and building another cube is there a way of reusing a slice of a cube?

So in the AventureWorks example i'd just like to specifically reuse "[Product].[Product Categories].[Subcategory].&[1]" subcategory..

Regards,

Ben

How about setting up a security role, with just that 1 allowed member on the Product Subcategory atttribute - visual totals can be enabled, so that users in this role only see totals contributed by that member?

SQL Server 2005 Books Online

Granting Custom Access to Dimension Data

...

Understanding the AllowedSet Property

The AllowedSet property uses a Multidimensional Expressions (MDX) expression to determine which attribute members can be viewed by the database role (the allowed set). The allowed set can include no (default), all, or some attribute members.

...

Understanding the VisualTotals Property

The VisualTotals property indicates whether the aggregated cell values that are displayed are calculated according to all cell values or only according to the cell values that are visible to the database role.

|||

I thought about using security, but will dimension security mean that these users cannot see all categories in another cube?

The intention is that this is a targeted cube for these users, and they won't be distracted by the whole set of data.

|||

"will dimension security mean that these users cannot see all categories in another cube?" - not necessarily, since you can define dimension security just on cube dimensions. This might not be obvious from BOL; but the "Dimension" drop-down tree in the "Dimension Data" tab of the "Role" designer in BIDS shows something like:

-- Database

- Dimensions in Database

-- Cube(s)

- Dimensions in Cube

Answer Re: Security on role-playing dimensions

When you define dimension security, you can set it either on database dimension or on cube dimension. You need to choose one of the cube's role-playing dimensions and set dimension security only on it.


Mosha - http://www.mosha.com/msolap

|||

thanks.. this is exactly what i am after... will try it out today.