This topic is locked

User Permissions

5/19/2008 4:19:50 PM
ASPRunnerPro General questions
W
waynem author

I have a question regarding setting up user logins.
I want anyone to be able to register an account and add/edit/delete their own records.
I've turned on the "Users can see data; can edit their own data" and matched fields between the main table and the user account table.
But how do I map a user login to have add/edit/delete permissions to only their own records?
I assume I need to create a group with these permissions, and add the user to that group, but then what would stop the person from having rights to every record?
Thanks in advance for your assistance.

Sergey Kornilov admin 5/20/2008

You don't need groups for this purpose.
When "Users can see data; can edit their own data" security mode is in use UserID is added to each new record automatically.

W
waynem author 5/20/2008

You don't need groups for this purpose.

When "Users can see data; can edit their own data" security mode is in use UserID is added to each new record automatically.


Ok, but how do I add a new record as a newly created user? The add button does not appear.

Sergey Kornilov admin 5/20/2008

Make sure you enabled the Add page.

W
waynem author 5/21/2008



Ok, but how do I add a new record as a newly created user? The add button does not appear.


The add page is there.
Another thing I noticed is that I cannot log in with my admin ID, which is in the permissions, and works on other projects that are not using the "Users can see data" option.
If I enter the add page manually into the address bar it then tells me my session has expired, please login again.

Sergey Kornilov admin 5/21/2008

It looks like you use User Group Permissions and new user belongs to the group that don't have access to the Add page.

Proceed to Security->User Group Permissions and enable access to the Add page.

W
waynem author 5/21/2008



The add page is there.
Another thing I noticed is that I cannot log in with my admin ID, which is in the permissions, and works on other projects that are not using the "Users can see data" option.
If I enter the add page manually into the address bar it then tells me my session has expired, please login again.


Sorry to be thick-headed, but what group is assigned to new users under this feature? How do I link this feature to a specific user group?

Sergey Kornilov admin 5/21/2008

It all depends on GroupID field default value. Via default value you can control what group new user belongs to.
Also you can setup a Default group. All unassigned users will fall into this group.

W
waynem author 5/21/2008



Sorry to be thick-headed, but what group is assigned to new users under this feature? How do I link this feature to a specific user group?


Thanks, I am almost there now! I changed the permissions to the default group and had a successful test. I made sure that guests did not have these permissions, so that's good.
What I need to do now is understand how I recover my admin access to this project. When I try to login with my admin ID it does not accept it.

Sergey Kornilov admin 5/22/2008

Make sure admin record is still in Users table.
You can also post your application to Demo Account and send the URL to support@xlinesoft.com.

W
waynem author 5/28/2008



Thanks, I am almost there now! I changed the permissions to the default group and had a successful test. I made sure that guests did not have these permissions, so that's good.
What I need to do now is understand how I recover my admin access to this project. When I try to login with my admin ID it does not accept it.


Ok, I figured this out. I was using a user name that is the same as the group name, which worked fine for older projects that did not use User Login. For whatever reason it doesn't work here, but when I add a new user to the admin group with a name that is different than the admin group name, it does work.