Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

Relationship between employeeid and WindowsCredentials

(0) ShareShare
ReportReport
Posted on by 1,465

Hi,

Is it possible to get WindowsCredentials(MbfUserWindowsIdentity)  by employee (employee) field form PJEMPLOY?

Thanks!

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Relationship between employeeid and WindowsCredentials

    Hi Andrew

    That's fine. Hope that workaround works for you...

    Thanks

  • Andrew73 Profile Picture
    Andrew73 1,465 on at
    RE: Relationship between employeeid and WindowsCredentials

    We do.

  • Andrew73 Profile Picture
    Andrew73 1,465 on at
    RE: Relationship between employeeid and WindowsCredentials

    Hi Santhosh,

    What a deep knowledge!  Unfortunately  WindowsUserAcct is null!

    Seems to be I found a workaround (not a very straightforward!) - Constituent field in MbfRoleUser.

    Thanks!

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Relationship between employeeid and WindowsCredentials

    Are you guys using Business Portal at all?

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Relationship between employeeid and WindowsCredentials

    Hello Andrew,

    You can use the below query to get the details of Employee vs SL User vs Windows User Acct

    --Query

    Select Employee, emp_name, A.User_ID, B.UserName , B.WindowsUserAcct  From PJEMPLOY as A LEFT Outer Join Vs_UserRec as B ON A.user_id =B.UserId 

    Execute the above query in SL application databse to get the result.

    Here in that query I have used the vs_userrec view. That view denotes the User_Rec table information under SL system database.

    Hope this helps

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,307 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans