SecurityKeySet permissions

I can assign the securitykeyset class but when I initialize it, AX crashes when it gets to that point… Any suggestions?