Quantcast
Channel: Symantec Connect - Archiving and eDiscovery
Viewing all articles
Browse latest Browse all 5217

Can we please have a better example piece of code for the "Authorization Rule" help?

$
0
0

Dear Symantec,

I have been looking at the process of setting up permissions for people in Enterprise Vault 10.0.0.4 and I came to the section of "Authorization Rule".

This looks very useful and there is a small amount of help for this:

Allows you to set an authorization rule for the role definition. An authorization rule determines whether the role is allowed (for example, the following VBScript always grants permission:

AzBizRuleContext.BusinessRuleResult = True)

But I am trying to work out what sort of code can be included here. I use VBScript and JScript quite a lot in my work, but it would be useful to have something more verbose in the help to allow us to understand exactly how to use this.

A better example could be something like (and I confess that I do not know how to use this):

Dim objRole

Set objRole = CreateObject("Enterprise.Vault")

If Left(objRole.Name, 6) = "Admin " Then

    AzBizRuleContext.BusinessRuleResult = True

Else

    AzBizRuleContext.BusinessRuleResult = False

    AzBizRuleContext.UserIsValid = False

End If

So, could the code example please be expanded to include something that would be more representative of normal functionality? Also, in this section of help, could we be pointed towards somewhere on SymWise (or help) that might include more information about the API that is used for the objects? All the current other section for this mentions is the Microsoft website for how to use VBScript or JScript.

Kindest regards,

QuietLeni

 


Viewing all articles
Browse latest Browse all 5217

Trending Articles