This topic is locked

User ID vs. Group ID

6/9/2007 9:06:10 PM
PHPRunner General questions
C
clare author

Hi,
I am havening problem to get the point of Group ID.
For example,
I have User table and two Groups 1 is User group and 2 is Admin Group.
When I select User can edit only her data option, so how can the admin edit all her users? <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=5472&image=1&table=forumtopics' class='bbc_emoticon' alt=':angry:' />
Group ID when it comes to User ID has no meaning, isn't? <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=5472&image=2&table=forumtopics' class='bbc_emoticon' alt=':unsure:' />
Clare

M
michaelmac 6/9/2007

Hi,

I am havening problem to get the point of Group ID.
For example,
I have User table and two Groups 1 is User group and 2 is Admin Group.
When I select User can edit only her data option, so how can the admin edit all her users? <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=18727&image=1&table=forumreplies' class='bbc_emoticon' alt=':angry:' />
Group ID when it comes to User ID has no meaning, isn't? <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=18727&image=2&table=forumreplies' class='bbc_emoticon' alt=':unsure:' />
Clare


Hey Clare
Ok. GroupID is what level you want to assign access levels to. UserID and password are just for LOGON. After that, I really never touch them except for when I build the User Profile section of my page. As I told you, use the billToID for the place responsible for all the bills. I mean if you say have a district that has 10 stores. The billToID would be for that district. Then the 10 stores would have their own unique shipToID.. like this password table
billToID shipToID

1000 --- 1000 --> the district office

1000 --- 1234 --> Store #1234 in district 1000

1000 --- 2312 --> Store #2312 in district 1000

1000 --- 2567 --> Store #2567 in district 1000
:

:

:

2134 --- 3567 --> Store # 3567 in district 2134

2134 --- 3679 --> Store # 3679 in district 2134
Now to make this system work, you need to have ONLY UNIQUE Store numbers.. the rest will fall in to place
I hope that helps
Mike

M
michaelmac 6/9/2007



Hey Clare
Ok. GroupID is what level you want to assign access levels to. UserID and password are just for LOGON. After that, I really never touch them except for when I build the User Profile section of my page. As I told you, use the billToID for the place responsible for all the bills. I mean if you say have a district that has 10 stores. The billToID would be for that district. Then the 10 stores would have their own unique shipToID.. like this password table
User will have there own userID/password/billToID/shipToID/GroupID
billToID shipToID

1000 --- 1000 --> the district office ===> set up as an ADMIN

1000 --- 1234 --> Store #1234 in district 1000 ===> set up Manager

1000 --- 2312 --> Store #2312 in district 1000

1000 --- 2567 --> Store #2567 in district 1000
:

:

:

2134 --- 3567 --> Store # 3567 in district 2134

2134 --- 3679 --> Store # 3679 in district 2134
Now to make this system work, you need to have ONLY UNIQUE Store numbers.. the rest will fall in to place
I hope that helps
Mike


Hey Clare
Now once you get your user and admins set up.. when you get to the passwords login.. set the district store to see only their STORE that are equal to their billToID.. .. if you want manager/user to see only their store.. set them up to see only shipToID..
now this is where I said you need two almost indentical project.. one will have password loging where all your items have a billToID and a shipToID.. if you don't, this will give you a fit later. Now once you have the two projects set.. you set one where all the links in the security are billToID = billToID this way only that district will see there data...(all there assigned stores)
in the other project.. in the security.. set the shipToID = shipToID. this will allow you to have a manager/user for JUST that store..
the rest is how u treat the "GroupID" after they loginsuccessful event..
I hope this helps you
Mike