Windows Authentication USERID

idiotidiot Member Posts: 651
Using Windows Authentication, the full userid is domain\username.
MESSAGE(USERID) will return just the username.
How to get the full userid in the form of domain\username?
Thanks
NAV - Norton Anti Virus

ERP Consultant (not just Navision) & Navision challenger

Answers

  • garakgarak Member Posts: 3,263
    you can use the table Windows login
    Do you make it right, it works too!
  • kinekine Member Posts: 12,562
    or you can use the WSH automation for that. Search the forum, there is already answer.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • garakgarak Member Posts: 3,263
    or wsh ;-)
    Do you make it right, it works too!
  • garakgarak Member Posts: 3,263
    arg, i've forgotten environ ](*,)
    message(environ('Userdomain')+'/'+environ('Username'));
    

    If you need the complete OU from AD, you can use WSH

    Regards
    Do you make it right, it works too!
  • idiotidiot Member Posts: 651
    edited 2008-07-04
    This is exactly what I need. Thanks.
    ENVIRON is a very powerful tool :D
    NAV - Norton Anti Virus

    ERP Consultant (not just Navision) & Navision challenger
  • kinekine Member Posts: 12,562
    idiot wrote:
    This is close to what I need. Thanks.
    What ENVIRON variables are there?

    Just run the command prompt (run cmd.exe)
    and than type "set" and enter...

    it will show you all variables with the values...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.