web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Dynamics CRM V4.0 - Getting Userid's

(0) ShareShare
ReportReport
Posted on by

Hi All

 

Please could someone advise me how to get the userid of a user in Dynamics CRM v4.0?

 

Ive got a Excel spreadsheet which queries the CRM database and need to add in another user to the query.

 

 

Many thanks in advance

 

 

James

*This post is locked for comments

  • Ian Grieve Profile Picture
    22,784 on at

    Hi James,

    This is the GP forum; you'd have much better luck reposting in the CRM one.

    Ian

  • Beat Bucher  GP Geek  GPUG All Star Profile Picture
    28,069 Moderator on at

    Hi James,

    I fear this will be pretty tough... reason is that CRM (4.0 and also all other versions) is using the AD authentication from the windows network, thus the user-ID that is stored in most tables will be the lengthy UID from AD... The same is true for the Business Portal of Dynamics GP, which relies on the free SharePoint version and authenticates the user only against the AD.

  • Suggested answer
    Beat Bucher  GP Geek  GPUG All Star Profile Picture
    28,069 Moderator on at

    however James,

    If you want to follow the path of trying to track your users in the SQL tables, have an outlook into the SQL database on your server that starts with the name of your company (most of the time, when CRM is installed, people use the suggested DB name provided by the setup, which includes the company name).

    There is a table called 'SystemUserId'... it will hold the information you're looking for with the AD UID. The table ResourceId will also show your the user's name in clear text, so that will help you to pinpoint the 'real' user behind a UID string... don't think you're going to find the network login name anywhere in the tables.

    Good luck.

  • Community Member Profile Picture
    on at

    Thanks for your help Beat, its actually a field called filteredlead.ownerid

    this is what its querying so i need to add another users id into this.

    WHERE ((FilteredLead.ownerid = '5fb063db-3854-df11-8e09-001a64c7d63c') OR (FilteredLead.ownerid = '0704048b-30c4-e111-8e20-001a64c7d63c') OR (FilteredLead.ownerid = 'b488feb6-c428-e211-931f-001a64c7d63c') OR (FilteredLead.ownerid = 'E9957024-006A-E211-BB6F-001A64C7D63C') OR (FilteredLead.ownerid = 'd28bd479-2bfc-e111-a782-001a64c7d63c') OR (FilteredLead.ownerid = 'e9957024-006a-e211-bb6f-001a64c7d63c') OR (FilteredLead.ownerid = '4e3bb841-908d-e211-9dd6-001a64c7d63c') OR (FilteredLead.ownerid = '58a49167-ffb6-e211-902a-001a64c7d63c'))

    thank you

    James

  • Verified answer
    Jonathan Fear Profile Picture
    Microsoft Employee on at

    Hi James,

    Please post this in the CRM forums as this is for Dynamics GP.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans