Skip to main content

Get Token

This API generates a token for a user to access the Directory Manager APIs. This API is also used to get a valid token in case the token expires in a session.

Endpoint

https://machinename:4443/GroupIDSecurityService/connect/token

HTTP Method

POST

Parameters Values and Description

Pass the parameters listed in the table in the request body using the following format:

application/x-www-form-urlencoded
NameDescription
grant_typepassword
usernameSend the username against this parameter to access APIs
passwordPassword of the user
client_IdSecret of Directory Manager API from the SVC.Client database table
client_secretSecret of Directory ManagerAPI from the SVC.Client database table
identity_store_idThe ID of the identity store in which the user exists. You can get the identity store ID from the SVC.Identitystore database table.

Sample Response Syntax

{
    "access_token": <token value> 
    "refresh_token": <refresh token value> 
    "scope": "directorymanager.api groupid_identity offline_access openid profile",
    "token_type": "Bearer",
    "expires_in": 1200
}