Thanks Robert.
So, the point is:
Define a new handle (12345/usertype1) with index=200, type HS_VLIST where the value data is a list of users, for example as the documentation shows: 300:10.50/USR1; 300:10.50/USR2; 300:10.50/USR3;
Each of these values is a handle that represents a user (usr1,usr2,usr3) with HS_ADMIN permission (read/write)..but..what do you mean with "Then you could give 200:12345/usertype1 permissions on other handle records via HS_ADMIN values"?.
In addition, if I create a new handle, 12345/handlexample that could be read it by "usertype1" (usr1,usr2,usr3) and modified by another type of user (e.g. "usertype2"). How can I, for
the same handle (a specific index where specific data is stored), specify permissions to read to usertype1 and to write by usertype2?.
Thanks in advance.
De: Robert R Tupelo-Schneck <schneck@cnri.reston.va.us>
Enviado: lunes, 28 de noviembre de 2016 15:59:43 Para: Ruiz-Zafra, Angel Cc: handle-info@cnri.reston.va.us Asunto: Re: [Handle-info] Types of users/Types of permissions You can specify "groups" of administrators using the HS_VLIST handle value type. For instance you could create 12345/usertype1 with a handle value at index 200 of type HS_VLIST with data being an encoded list of user identities. Then you could
give 200:12345/usertype1 permissions on other handle records via HS_ADMIN values. That may give you functionality similar to "roles".
It is not possible to have index-specific permissions. This may be tried in the future, but it was tried in the past and rejected as overly complicated.
If you need more fine-grained permissions, you may be best served by treating Handle as a back-end layer where your front-end manages permissions.
Robert
|
_______________________________________________ Handle-Info mailing list Handle-Info@cnri.reston.va.us http://www.handle.net/mailman/listinfo/handle-info