Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Working with User Management

2016-11-09
2021-01-11
  • DavidCozens - 2016-11-09

    I am trying to get a basic check dialog in place for a change to a critical parameter. I have a requirement that a before a particular change can be made the current user must re-enter their password, and a user from a 'supervisors' group must enter their name and their password. See below for an image. When OK is pressed I want to revalidate both passwords and then take appropriate action.

    I'm struggling to get enough visibility of how the User Management is structured to be able to put this together.

    I have inspected the VisuUserMgmtDialogs.library and found that these dialogs reference the UserManagement system through dialog parameters. I haven't found out how to access what these are set to when the dialog is called, as the user management dialogs are a special case.

    I have looked through the VisuUserManagement library and found the VisuUserMgmt function block, which I think has the Methods I want CheckLogin and CheckLoginWithGroupID - but I'm not sure these are correct - as I don't want to login - just check the password.

    I also need to understand how users and group ID's relate. Somehow I ned to identify to the dialog which group of users is the 'supervisors ' group.

    I'm not sure if I'm just not finding the relevant documentation, or reference project. Any tips much appreciated.

    IMG: Screen Shot 2016

     
  • gsaiko - 2018-04-25

    Hello David Cozens

    I Need to automatic login with an existing user.
    Do you have an example where i can see how to do this.

    I do:
    VAR
    fbVisuUserMgmt : VisuUserManagement.VisuUserMgmt;
    stVum_User_Act: VisuUserManagement.VUM_User;
    END_VAR

    fbVisuUserMgmt();
    stVum_User_Act := fbVisuUserMgmt.GetCurrentUser();

    the stVum_User_Act is always empty..

    will be glad if you can help me
    Greatings
    GΓΌnter Saiko

     
    • dgirard - 2021-01-11

      Did you ever find a solution?

       

Log in to post a comment.