Is it possible to pre-configure (via code) user-defined event categories for the 'Access Control Events' panel? I don't see this anywhere in the documentation although it is an option when running the plugin and interacting with it manually.

XProtect Corporate 2019 R3;

I’m thinking of creating something similar to ACBuiltInStateTypeCategories but for user-defined categories.

At the very least, it would be useful to know what the strings look like / how they are formatted within the Milestone system. (e.g. ACBuiltInStateTypeCategories.Error)

Hi Tristan,

You can certainly create user defined categories, using the method SetUserDefinedCategories through the wsdl

http://YOUR-SERVER-HERE:22331/Central/AccessControlServiceToken?wsdl

Attached is an example of what the body request looks like, this example is using SOAP UI to make the request.

I found that what I wanted to do had clues in the plugin sample. Namely:

the DemoAccessControlPlugin. Within this project, there is a file named Types.cs which shows how a user can define a custom event category in the class Categories (of type ACCategoryInfo).

Untitled

Where CategoryId was a user-defined class as well (shown below)

Untitled2

It appears that the string Id is a matter of user preference.

I’d imagine that both doing it this way or the way specified by Matheus would produce the desired outcome, although this method was what I was seeking when asking this question.