This topic has 2 replies, 3 voices, and was last updated 3 months, 1 week ago by Bill Nelson.

  • Author
    Posts
  • #28195
     praveenpasi
    Participant

    Hi,
    We are using ForgeRock version6 & have integrated AM,IDM & DS.
    We are doing a poc of securing microservices using OpenID ForgeRock conenct/OAuth captabilities.

    As part of poc,we need to get the roles associated to the user.The users and the associated roles are primarly present in DS & reconciled into IDM.
    Does ForgeRock have REST API’s that interact with IDM/DS & return the roles associated to a user when userid is sent as paramter?
    If possible please provide links to the REST API’s provided by ForgeRock with API documentation/syntax.

    Thanks,
    Praveen

    #28196
     Ludo
    Moderator

    Please use the IDM REST APIs to access roles.

    #28200
     Bill Nelson
    Participant

    @praveenpasi,

    you say that the roles are reconciled into IDM. Are you bringing them in as managed/role objects? If so, you can retrieve the roles for a user with the following:

    GET http://host:port/openidm/managed/user/_id/roles?_queryFilter=true&_fields=_ref/*,name

    This will bring back only the roles associated with that the user associated with the _id identifier.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

©2020 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?