I've worked with BoundAttachments and assume BoundSecurityProperties should work the same but when I try to access them I get null references.
For example when I look at 'Count' it shows the property I've defined exists but when I try to reference it by name or number I get 'Nothing'.
When I do exactly the same thing with an attachment it works as expected.
This should work fine. I've tested this myself without any problems. What version of DA are you using? I've posted a macro that deals with security properties. Here's a link to it:
Hopefully this will help you determine what's going on with your specific situation.
It turns out that .Item(index) only ever works by luck. The numeric value isn't an index.
Access by name DOES work. I had a bug that was causing me to look for the wrong name.
I'm not sure why the example code uses .item(FindSecProp(name)) since .Item(name) seems to do the same thing faster.