Generate Personal Auth Initiator URL

  • 릴리스 버전: Australia
  • 업데이트 날짜 2026년 03월 13일
  • 소요 시간: 2분
  • Generate the initial token for a user who doesn’t have access to the credentials page to configure personal authentication.

    시작하기 전에

    Role required: connection_admin, oauth_admin

    이 태스크 정보

    Users without the connection_admin role can’t access the Credentials page to generate OAuth tokens. These users must generate a personal token using the oauth_initiator URL with additional parameter indicating that the token is personal and requested for session user.

    You can also use the scoped PersonalAuthAPI with the sn_personal_auth plugin to generate the initiator URL. For more information, see PersonalAuthAPI - getInitiatorURL(String aliasId)
    주:
    If the personal authentication plugin (com.snc.sn_ihub_personal_auth) is activated, use the scoped API to generate the initiator URL. This. API is available only if the plugin is installed.

    프로시저

    1. Use the following format to construct the token generation URL for Password Grant Type:
      https://<instance-name>.service-now.com/oauth_password_input.do?
      sysparm_oauth_requestor_context=oauth_2_0_credential&sysparm_oauth_requestor=
      <credential sys_id>&sysparm_oauth_provider_profile=<OAUTH profile sys_id>&sysparm_oauth_personal=true 
    2. Use the following format to construct the token generation URL for Authorization Code Grant Type:
      https:// ://<instance-name>.service-now.com /oauth_initiator.do?
      oauth_requestor_context=oauth_2_0_credentials&oauth_requestor=
      <credential sys_id>&oauth_provider_profile=<OAUTH profile sys_id>&response_type=code&personal=true