# Jenkins Pipeline Remote Trigger

**URL:** <https://community.jenkins.io/t/jenkins-pipeline-remote-trigger/4715>\
**Category:** Ask a question\
**Created:** [November 25, 2022, 12:02pm UTC](https://community.jenkins.io/t/jenkins-pipeline-remote-trigger/4715 "2022-11-25T12:02:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cloudy](https://avatars.discourse-cdn.com/v4/letter/c/ea5d25/32.png) [@cloudy](https://community.jenkins.io/u/cloudy)\
**Post date:** [November 25, 2022, 12:02pm UTC](https://community.jenkins.io/t/jenkins-pipeline-remote-trigger/4715/1 "2022-11-25T12:02:45Z")

</div>

Trying to remote trigger a Jenkins pipeline using curl and for authentication, passing an AD user name and API token generated in Jenkins for that user. Also tried using the AD user name and password for authentication.

The current status of the following remote trigger pipeline test is “HTTP Error 401 Unauthorized”

Commands used:  
curl -vk --user AD User:API token [http://jenkinsurl/job/job-name/build?token=API](http://jenkinsurl/job/job-name/build?token=API) TOKEN

curl -vk --user AD User:AD Password [http://jenkinsurl/job/job-name/build?token=API](http://jenkinsurl/job/job-name/build?token=API) TOKEN

Note: The above given URI works well when logged on to the Jenkins console from the browser with single sign-on. When I put this above given URI on a separate browser tab, the job gets triggered remotely without the need for triggering it manually.

How to trigger the pipeline remotely in this scenario from the command line successfully?
