close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

restricting access to admin usergroup?

Thread began 2/22/2021 10:15 am by Peterson Design Studio - jefferis | Last modified 2/22/2021 6:26 pm by Ray Borduin | 19 views | 5 replies |

Peterson Design Studio - jefferis

restricting access to admin usergroup?

Hi Ray, I created a security > access groups called admin. In my user database I have usergroups 1 and 2. 1 for customers, 2 for admins. In the admin access groups I added all the emails of those who are admins. The issue is that once anyone is logged in, I can't restrict access to admin pages. The customers need to be logged in to be able to see the wholesale catalog. I am not sure I am going about this correctly. My DB has tables for usergroups and users. In users, I also have a field for user groups, but when I created administration pages in the wizards, the server behaviors do not see the user group field. When I try to add dynamic text to the behaviors, it doesn't show that usergroup field. The wizard said something about the fields not matching and some would be dropped. but my table field names match the one WA created. https://www.screencast.com/t/wrh8Uvm4Mvj

Sign in to reply to this post

Ray BorduinWebAssist

You should update your login page to store the access group in the session. Then you can create a rule based on the value of the session variable for admin and customers.

Sign in to reply to this post
Did this help? Tips are appreciated...

Peterson Design Studio - jefferis

Do I have to rerun the entire security access wizard to do that? I keep looking in server behaviors and bindings but don't see a way to add it.

BTW.... switching from root to relative on the site preferences makes all your wizards run a lot faster. Go figure!

Sign in to reply to this post

Ray BorduinWebAssist

No, just open the authenticate user server behavior on the login page and then update the security assist rule directly from the webassist menu.

You almost never re-enter a wizard once it has run.

Sign in to reply to this post
Did this help? Tips are appreciated...

Peterson Design Studio - jefferis

thanks. I think I would need an example of what you are saying or a more complete explanation. I went to the auth user behavior and then to SA>Authenticate User and it seems if I add usergroup to this, it would exclude customers. It would apply the rule to all logins. Maybe I should just set up a separate login for admin pages?

Sign in to reply to this post

Ray BorduinWebAssist

You add the usergroup in the Save Value tab, not in the Filter tab. It just saves that value in the session so you can use it in your security assist rule when you want to.

You could do separate logins if you wanted.

Sign in to reply to this post
Did this help? Tips are appreciated...

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...