A
A C
Hello
Can someone point me to some code snippits or similar which detail how to
manage users via code. We dont want users to have to go through the normal
workgroup interface simply to manage users. The desired scenario is:
-create an "admin" user who is allowed to manage the workgroup, noone else
is. I suspect this probably happens automatically when creating the mdw
file? (ie only users in the admin group will be permitted to
add/remove/manage users...?). This may not necessarily be the dbase admin
user
-create other groups with various permissions on the dbase.
-if requested by a user, create a list of users and their groups. This will
be displayed in a nice format such as a form or datasheet, if I can cycle
through the users in code then it will be trivial to get this info into the
format I want.
-have some ability to "ADD" a new user and assign them to an existing group
-have some ability to "DELETE" an existing user from a group (all groups),
or even totally
-have some ability to "ADD" existing users to existing groups
All the above via nice interface.
These last 3 would be indicated somehow via forms or check boxes in tables
or whatever (zillions of possible ways to indicate what we want done), but
then I need code to actually do the management.
As well as how to do above, what files change wrt permissions??? ie What
files will i need to redistribute? I have not quite got my head around just
where and what is stored in the mdw vs the dbase. Does the above change the
mdw or the dbase (or both?). So if a change is made to the users what files
need to be resent out?
When adding new users do they appear (are they controlled) in the mdw or in
the dbase?
As you can probably tell I am a newbie to all this, I think once i get my
head around whats happening and where it will all make a bit more sense, so
excuse what may appear to be dumb questions.
My current thought on what happens in general is that I use a developer mdw
to create a dbase admin user and regular user groups (call these dbUserGrp)
with various permissions on the dbase. Then I can create a separate mdw
which contains a (subset) of these groups (each dbUserGrp created using same
PID etc as when I made the dbase), the main pt of difference is that it will
be missing the dbase admin group/user and have its own mdw admin user. Then
the mdw admin user is free to add users to the dbUserGrp and if they do they
will get access to my dbase and inherit all the regular dbUserGrp
permissions. The mdw admin user cannot adjust dbase pemissions for the
dbUserGrps, and if they invent new groups the developer didnt know about
they can do it but will be useless. Is this how it works? If so then I
suppose the adding/deleting etc of users happens in the mdw?
Thanks for all help
AC
Can someone point me to some code snippits or similar which detail how to
manage users via code. We dont want users to have to go through the normal
workgroup interface simply to manage users. The desired scenario is:
-create an "admin" user who is allowed to manage the workgroup, noone else
is. I suspect this probably happens automatically when creating the mdw
file? (ie only users in the admin group will be permitted to
add/remove/manage users...?). This may not necessarily be the dbase admin
user
-create other groups with various permissions on the dbase.
-if requested by a user, create a list of users and their groups. This will
be displayed in a nice format such as a form or datasheet, if I can cycle
through the users in code then it will be trivial to get this info into the
format I want.
-have some ability to "ADD" a new user and assign them to an existing group
-have some ability to "DELETE" an existing user from a group (all groups),
or even totally
-have some ability to "ADD" existing users to existing groups
All the above via nice interface.
These last 3 would be indicated somehow via forms or check boxes in tables
or whatever (zillions of possible ways to indicate what we want done), but
then I need code to actually do the management.
As well as how to do above, what files change wrt permissions??? ie What
files will i need to redistribute? I have not quite got my head around just
where and what is stored in the mdw vs the dbase. Does the above change the
mdw or the dbase (or both?). So if a change is made to the users what files
need to be resent out?
When adding new users do they appear (are they controlled) in the mdw or in
the dbase?
As you can probably tell I am a newbie to all this, I think once i get my
head around whats happening and where it will all make a bit more sense, so
excuse what may appear to be dumb questions.
My current thought on what happens in general is that I use a developer mdw
to create a dbase admin user and regular user groups (call these dbUserGrp)
with various permissions on the dbase. Then I can create a separate mdw
which contains a (subset) of these groups (each dbUserGrp created using same
PID etc as when I made the dbase), the main pt of difference is that it will
be missing the dbase admin group/user and have its own mdw admin user. Then
the mdw admin user is free to add users to the dbUserGrp and if they do they
will get access to my dbase and inherit all the regular dbUserGrp
permissions. The mdw admin user cannot adjust dbase pemissions for the
dbUserGrps, and if they invent new groups the developer didnt know about
they can do it but will be useless. Is this how it works? If so then I
suppose the adding/deleting etc of users happens in the mdw?
Thanks for all help
AC