Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

VBA Access security role

Posted on by Microsoft Employee

hi all,

using VBA, is it possible to get details about security roles and tasks about the current user.  I tried Userinfo object, it provides basic information the user.  Is there any alternative way for this.  Any reply will be highly appreciated.

thanks in advance,

arun.

*This post is locked for comments

  • Suggested answer
    Mahmoud Saadi Profile Picture
    Mahmoud Saadi 32,738 on at
    RE: VBA Access security role

    I believe you would consider the method provided by Mr. David, to open a connection string with the database, retrieve the required security roles and tasks and close the connection. Check the following reference, it me be useful:

    Using VBA 

    On the other hand, to get this done, I would not recommend reinventing the wheel, the Support Debugging Tool already has already solved this out.

    Check the following reference:

    How to identify the security roles and tasks using Support Debugging Tool.

    Hope this helps,

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: VBA Access security role

    You can query the following table...

     

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans