Action Group and Action visible expressions
Is there a way to make an Action Group visible to only those with certain site security or those in certain system roles - like page permissions work
Comments
-
Anyone??
0 -
@Lisa Fields
There isn't a simple way of doing this, but I think you might be able to write an expression to handle this. There is a global function called ‘Globals.CurrentAppUserGrantedTask(taskID)’ which might be able to be used in the ‘visible' field under the actions group.
I've not tested this properly but I've been able to see that it returns a value when used in the caption so in theory this should work.
You'll need to start by finding the ID of as task which is in the action group and which the user group you want to hide the action group from does not have permissions to. To do this toggle page designed on and search for the name of the action. Once you have found it then copy the ID attribute > open the properties of the action group > open the expression window for the ‘visible’ field > then add this expression from the globals folder - = Globals.CurrentAppUserGrantedTask(taskID) > Replace taskID with the ID you copied (contained in “”) and then save.
If you can impersonate the user this should allow you to test it. This is a bit of a workaround so there might be an easier way of doing this. Hopefully this actually works.1 -
@Will Mercer thanks so much for responding. Unfortuneately you lost me with this part:
You'll need to start by finding the ID of as task which is in the action group and which the user group you want to hide the action group from does not have permissions to. To do this toggle page designed on and search for the name of the action.
The actions are things all users can do - they are interaction adds with defaults. I feel like I'm not understanding?
0 -
@Lisa Fields it was hard to explain. But essentially you can't permission the action group like you can the actions. But if there is an action which uses a catalog object e.g. data form which as user does not have access to you can write an expression to hide the action group based on that.
In theory this would mean that instead of the user still seeing the action group without the task they do not have permission for, they would not see the actions group at all.
This expression - Globals.CurrentAppUserGrantedTask("332c66b6-11ac-49c9-9079-6ad0a21dce23") returns True or False depending on the permissions the current user has. If a True is returned then the action group should be visible and if a False is returned then it shouldn't be.
If you don't have any actions in the page users don't have permission to then you would need to find one being used in another page for the same purpose. Essentially I think you can use any task ID for this purpose. Hopefully that makes sense?0 -
Actually, yes, that makes more sense. So for example if a team were able to add Events and another team can't, I could use that?
0 -
@Lisa Fields Yes I think so. I've not properly tested as I mentioned though so you'll need to give it a go
1 -
@Will Mercer
Gaah - can't get the expession right. I have a page that is protected to certain teams and the ID of that page (753b5807-dcdb-40ac-8ac7-43584047632c) but can't get the expression. Will try again tomorrow. Thanks again.0
Categories
- All Categories
- 6 Blackbaud Community Help
- 209 bbcon®
- 1.4K Blackbaud Altru®
- 394 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 359 Blackbaud eTapestry®
- 2.5K Blackbaud Financial Edge NXT®
- 646 Blackbaud Grantmaking™
- 563 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 934 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.4K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 243 ResearchPoint™
- 118 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 238 The Tap (Just for Fun)
- 33 Blackbaud Community Challenges
- 28 PowerUp Challenges
- 3 (Open) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 779 Community News
- 2.9K Jobs Board
- 53 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)
