PS

Good day,

I have a question regarding the use of macros. I run a macro whenever a user creates a new folder. This macro executes a report that sets the access for the user. However, I'm not sure how to pass the newly created folder to the report, so currently I set the rights for every folder owned by that user. Long, slow process.

Can anyone please suggest a way to pass the newly created folder from the macro to the report please?

Thank you,

Nevar

by Robert Goldenbaum
Badge for 'Question Solver' achievement
Posted on Wed, 05/17/2017 - 15:33

Hi,

well, this should not be necessary, If someone CAN create a sub group, he has to have write access to the parent group. And as far as I know, each sub group is always created with the access rights of the parent group...

BR Robert

0
by Pro Sci Author
Posted on Fri, 05/19/2017 - 14:51

Hi Robert,

Thank you for your response. When a user creates a folder, they are automatically given RWD access even if the parent folder is RW. If a user belongs to a UserGroup and has RW access to the parent folder, it will inherit from the parent folder and give RW access via the UserGroup, but the user will still have explicit RWD access to the folder he created.

What we do with the script, is remove the Delete access from the newly created folder. Perhaps that's the wrong way to go about it.

0
by Robert Goldenbaum
Badge for 'Question Solver' achievement
Posted on Fri, 05/19/2017 - 15:27

Ah yes ok...

Well, you could set a property with the group path or the GUID of the group...   Group path would be better...

0
by Pro Sci Author
Posted on Fri, 05/19/2017 - 15:34

Indeed setting a property is a good idea. I thought perhaps to have access to the Group object itself though. I found some information on an older thread. If this is my macro:



selection = Context.getSelectedGroups();

if(selection.length > 0)

{

    reportInfo = Report.createExecInfo("SOME_GUID", selection, Context.getSelectedLanguage());

    result = Report.execute(reportInfo, Context.getShowResult());

}

To get access to selection object/variable/data in the Report, it appears I just use ArisData.getSelectedGroups(). I was confused about it cause it didn't seem like that would pass through the right data from the macro to the report. I will try both the property way and the other way and see what works/works best. :-)

 

0

Featured achievement

Rookie
Say hello to the ARIS Community! Personalize your community experience by following forums or tags, liking a post or uploading a profile picture.
Recent Unlocks

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock