Add userid_unique invariant Affinitic refs #5889
Merge branch 'master' of github.com:affinitic/ric.core