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 CRM (Archived)

Users GUID in crm 4.0

(0) ShareShare
ReportReport
Posted on by 765

Hi ,

I need to run a script against the crm database in crm 4.0 

and to run that script i need a GUID of a User.

how do i get a Users GUID ?

any idea ?

thanks,

Prabhakar

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Royal King Profile Picture
    27,686 on at

    if you have access to sql server query system user table to get all the users GUID

    select SystemUserid from FilteredSystemUser

    or you use advanced find and download data in excel where you will have user guid

  • Verified answer
    Aileen Gusni Profile Picture
    44,524 on at

    Hi Prabhakar,

    If you are looking to find current user logged in, for example under SSRS, then you can use:

    dbo.fn_FindUserGuid() where it will return the guid

    select systemuserid , fullname

    from FilteredSystemUser

    where systemuserid = dbo.fn_FindUserGuid()

    if you are looking to get the Guid of a used by name then you can use this script:

    select systemuserid

    from FilteredSystemUser

    where fullname= 'Prabhakar'

    But using filteredview (filteredsystemuser)

    You only can get if you are login to SQL using authorized (windows authentication) CRM User, for example: System Admin of CRM.

    If you are using SA, then you cannot find this id using this:

    dbo.fn_FindUserGuid()

    and to find the user id by name if you use SA account authentication, then you should query agains table or view:

    select systemuserid

    from systemuser

    where fullname= 'Prabhakar'

    select systemuserid

    from systemuserbase

    where fullname= 'Prabhakar'

    Hope this helps!

    Thank you.

  • Verified answer
    Arpita Saini Profile Picture
    Microsoft Employee on at

    Hi Prabhakar,

    Is your question answered by the above replies.

    Thanks,

    Arpita

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Varsha deshpande Profile Picture

Varsha deshpande 5

#2
JS-09031509-0 Profile Picture

JS-09031509-0 3

#3
Ciprian  P Profile Picture

Ciprian P 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans