Getting the role given a wallet address

Linxight 61 Reputation points
2020-07-25T19:56:23.417+00:00

Is it possible to get the role of a user (ApplicationRoles) if a wallet address is provided in a Solidity code file?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,995 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AshokPeddakotla-MSFT 27,386 Reputation points
    2020-07-26T16:38:26.07+00:00

    @Linxight-8494 Welcome to Q&A forums!

    Not sure about the wallet address, I will check internally and update you as earliest. However, you can use REST API to get the details of Role Assignments.

    You can List all role assignments of the specified blockchain application. Users who are Workbench administrators get all role assignments. Non-Workbench administrators get all their role assignments. Roles are specified in the Workbench application configuration and can be retrieved from GET /applications/{applicationID}. Also, user information can be retrieved from GET /users/{userID}.

     GET /api/v2/applications/{applicationId}/roleAssignments
    

    With optional parameters:

     GET /api/v2/applications/{applicationId}/roleAssignments?applicationRoleId={applicationRoleId}&top={top}&skip={skip}&sortBy={sortBy}
    

    For more details, please see Applications - Role Assignments Get

    2 people found this answer helpful.
    0 comments No comments