Search code examples
authenticationartifactory

Is there a way to move the anonymous user back to internal in Artifactory?


Our anonymous User is somehow not internal and has the problem of timing out sessions for our users anon user in http-sso

We cant delete the user. And we need anon pulling, we enabled the anon allowance in Artifactory and it works. Till the session of the user times out and we can fix it only, by someone logging into the UI. Not with the anon user, but some other user logging into the UI fixes the Bad Credentials Error.

And maybe we can fix the Problem by moving the anon user back to internal?


Solution

  • I got it moved to internal, only by exporting and importing again this json as user anonymous, which comes from a clean artifactory install:

    {
        "username" : "anonymous",
        "firstName" : null,
        "lastName" : null,
        "email" : null,
        "realm" : "internal",
        "status" : "enabled",
        "lastLoginTime" : 0,
        "lastLoginIp" : null,
        "password" : null,
        "allowedIps" : [ "*" ],
        "created" : 1738314752329,
        "modified" : 1738314752329,
        "failedLoginAttempts" : 0,
        "statusLastModified" : 1738314752329,
        "passwordLastModified" : 0,
        "customData" : {
          "disabled_password" : {
            "value" : "true",
            "sensitive" : false,
            "clusterLocal" : false
          }
        },
        "groups" : [ ]
      }