Thanks. This makes sense. I got my group creation working using the REST api.
Now here is my question about private groups and wildcard-users. I want a group that authorizes only a few select users (admin, john, and larry).
Your example group public.json looks like this:
{ "op": [{"username": "admin", "password": "password"}], "presenter": [{}], "public": true}
So first (before using the REST api) , I tried to make a private group manually in JSON files like this:
{
"op": [{"username": "admin", "password": "12345"}],
"presenter": [{}],
"description": "This is a private group to test password-based restrictions.",
"displayName": "Private 3",
"users":{"john":{"password":"224715","permissions":"present"},"larry":{"password":"925385","permissions":"present"}}
}
Being non-public, this doesn't appear in the public list of groups. Great.
But, a big problem!
Login [admin/12345] >>> logged in
Login [admin/
anything_else ] >>> "not authorized"
Login [john/224715] >>> logged in
Login [john/
anything_else ] >>> "not authorized"
Login [larry/925385] >>> logged in
Login [larry/
anything_else ] >>> "not authorized"
PROBLEM: Login [anyone_else/anything] >>> logged in
It seems I can only stop anonymous logins by adding a wildcard user with obscure password:
{
"op": [{"username": "admin", "password": "12345"}],
"presenter": [{}],
"description": "This is a private group to test password-based restrictions.",
"displayName": "Private Test Group",
"users":{"john":{"password":"224715","permissions":"present"},"larry":{"password":"925385","permissions":"present"}},
"wildcard-user":{"password":"98579223487","permissions":"present"}
}
Login [admin/12345] >>> logged in
Login [admin/monkey] >>> "not authorized"
Login [rando/98579223487] >>> logged in
Login [rando/anything_else] >>> "not authorized"
What am I doing wrong or do I have the wrong mental model?
-Marty