Create Users Via REST API on Nexus 3 OSS?

1,411 views
Skip to first unread message

Tennis Smith

unread,
Mar 23, 2018, 2:18:07 PM3/23/18
to Nexus Users
Hi,

The topic says it all.  Is it possible to create users via the REST api on the OSS version of Nexus 3?  

TIA,
-T

Michael Prescott

unread,
Mar 23, 2018, 2:45:16 PM3/23/18
to Tennis Smith, Nexus Users
Yes, through our Script API.


Basically, you write a short groovy script, upload it to the script REST endpoint and it creates a new REST endpoint for your operation. (Adding a user, adding whatever roles, etc.) You can parameterize your scripts for greater control.

Michael


--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users+unsubscribe@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/a54956f9-929e-4f36-b822-cfa383055319%40glists.sonatype.com.
For more options, visit https://groups.google.com/a/glists.sonatype.com/d/optout.

Message has been deleted

Peter Lynch

unread,
Mar 27, 2018, 10:36:59 AM3/27/18
to Tennis Smith, Nexus Users

On Fri, Mar 23, 2018 at 4:03 PM, Tennis Smith <tennis....@gmail.com> wrote:
Anyone have an example of creating a new user? I"m new to Nexus and not very up on exactly what the groovy code would look like.
-T


On Friday, March 23, 2018 at 1:45:16 PM UTC-5, Michael Prescott wrote:
Yes, through our Script API.


Basically, you write a short groovy script, upload it to the script REST endpoint and it creates a new REST endpoint for your operation. (Adding a user, adding whatever roles, etc.) You can parameterize your scripts for greater control.

Michael

On 23 March 2018 at 14:18, Tennis Smith <tennis....@gmail.com> wrote:
Hi,

The topic says it all.  Is it possible to create users via the REST api on the OSS version of Nexus 3?  

TIA,
-T

--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users...@glists.sonatype.com.

--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users+unsubscribe@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
Reply all
Reply to author
Forward
0 new messages