How to get all password policy in DS via REST api

This topic has 2 replies, 2 voices, and was last updated 1 month, 1 week ago by tungnm13.

  • Author
    Posts
  • #28723
     tungnm13
    Participant

    As the titlle Our custom API need validate password policy name is exist in platform before assign it for a role.
    How can I get all Password Policy or Get Password Policy by Password Policy Name by REST API instead of LDAP command

    #28724
     Ludo
    Moderator

    You can retrieve all the password policies defined in the configuration using the REST API by querying the admin/config/password-policies endpoint:

    curl -u admin 'localhost:8081/admin/config/password-policies?_queryFilter=true&_prettyPrint=true'

    If you have defined Subentry Password Policies (policies that are stored with the data and replicated), you will need to define the proper configuration and mapping in the config/rest2ldap/endpoints/api/ Json files.

    #28725
     tungnm13
    Participant

    Thank you @ludo. It work with me now.

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

You must be logged in to reply to this topic.

©2021 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?