简体   繁体   English

SSRS BIDS表达式根据AD组选择可见性

[英]SSRS BIDS Expression to pick visibility based on AD GROUPS

I have a box with the text 'Dill Down Facility Available' (see screenshot) 我有一个包含文本'Dill Down Facility Available'的盒子(见截图)

When the report is run I only want certain people to see this box. 运行报告时,我只希望某些人看到此框。

The people I want to see this box are contained in 19 different ADGROUPS 我希望看到这个盒子的人包含在19个不同的ADGROUPS中

There will be others who run this, but I need them to see everything bar the yellow box. 会有其他人运行这个,但我需要他们看到一切都是黄色的盒子。

If I right click the box and go to: TextBoxProperties > Visibility > Show or hide based on an expression, 如果我右键单击该框并转到:TextBoxProperties>可见性>基于表达式显示或隐藏,

I am able to enter an expression. 我能够输入一个表达式。

The one ive written in the screenshot allows me to pick 1 individuals AD name in the following format: 我在截图中写的那个允许我以下列格式选择1个AD名称:

DOMAINNAME\ADNAME

However, if I put an ADGROUP name instead of the ADNAME, it does not work, and instead everyone can see the yellow box. 但是,如果我放置一个ADGROUP名称而不是ADNAME,它不起作用,而是每个人都可以看到黄色框。

As the expression contains 由于表达式包含

User!UserID

I believe this may be stopping my ADGROUP name working as its looking for a USER, although this would not explain why it then allows anyone to see this box. 我相信这可能会阻止我的ADGROUP名称正在寻找一个用户,虽然这无法解释为什么它允许任何人看到这个框。

Can anyone provide the expression to allow either: 任何人都可以提供表达式以允许:

a) 1 group name b) multiple group names a)1组名称b)多个组名

Thanks. 谢谢。

在此输入图像描述

SSRS does not have this functionality built in, you'll need to use a Custom Assembly and reference it in your project. SSRS没有内置此功能,您需要使用自定义程序集并在项目中引用它。

See: http://support.microsoft.com/kb/920769 请参阅: http//support.microsoft.com/kb/920769

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM