cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Writing a VB Script to list CRUD permissions

MRenoud
Super Contributor

Hello,

 

We work with HOPEX V4 CP7. In this version, the report of profiles permissions doesn't work. It will be corrected in HOPEX V5.

As we plan to migrate in HOPEX V5 in several months, we would like to write a VB Script to list CRUD persmissions. Is it possible ? Do you have un example ?

I thank you for advance.

3 Replies

There was a typo error in my message

 

it is obj.CallFunction("~R2mHVReGFP46[WFQuery]", "CRUD"));  not  CallFunctionString

 

 

MRenoud
Super Contributor

Hello,

 

I try the code below in script editor :

obj=GetObjectFromId("~KekPBSs3iS10[Diagramme]")

obj.CallFunctionString "~R2mHVReGFP46[WFQuery]", "CRUD"

 

But i have this error :

Script Editor Default : Microsoft VBScript runtime error line 3, offset 1 :
Error(0x800a01b6) : Object doesn't support this property or method: 'obj.CallFunctionString'

 

The object WFQuery seems not to exist in HOPEX V4CP7  (see screen shot).

 

I thank you for your help.

oguimard
Retired

Hello,

 

You can try this method :

 

obj.CallFunction("~R2mHVReGFP46[WFQuery]", "CRUD"));
 
it should return the CRUD for the given "obj" object.