How to prevent a user from login to Jira directly through API

Zoe Park March 23, 2014

Hi,

I wonder how to prevent a user(e.g. a newly created user) from login to JIRA directly?(Through API to implement)

Thanks

1 answer

0 votes
&(*&)#)_*#@@(*)(@*)(*@
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 23, 2014
Zoe Park March 23, 2014

Thank you Marc, any reference of using PHP to implement?

&(*&)#)_*#@@(*)(@*)(*@
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 23, 2014

JIRA run whitin a java jvm .. this hardly mix with php.

if you want to use php , then you just have to call the jira rest api from your php code. you can easily do some rapide prototyping with curl or any tools of choices for rest :

  • create user
  • deactivate user

if you dont want to make 2 disctinct call , you can create a REST Service Plugin with the above mentioned code , and then call this url from you php code .

best regards

Suggest an answer

Log in or Sign up to answer