Giter VIP home page Giter VIP logo

Comments (5)

mooreds avatar mooreds commented on July 20, 2024

Hmmm.

Does ROLE_USER exist in the application?

Is the user created in the FusionAuth UI?

Is the registration created in the FusionAuth UI?

from fusionauth-java-client.

hantsy avatar hantsy commented on July 20, 2024

I want to use createUser to create a new user.

Currently I found the registrations of the User is not applied at all when calling client.createUser. The response.user of createUser or calling find by userid, the getRoleNamesOfApplication does not contain any roles.

I have to use the register method to add a user, see #25

from fusionauth-java-client.

hantsy avatar hantsy commented on July 20, 2024

My testing result is like.

  1. createUser using above data, and getRolenamesofApplication of the response.successResponse.user return null, then invoke retrieveUser using the returned user.userid in last step and call getRolenamesofApplication of the response.successResponse.user returns null.
  2. register using data in the issue #25 , and getRoleNamesofApplication of the response.successResponse.user return null, then invoke retrieveUser using the returned user.userid in last step and call getRolenamesofApplication of the response.successResponse.user returns the correct role names.

from fusionauth-java-client.

robotdan avatar robotdan commented on July 20, 2024

This is working as designed, if you want to create a user and a registration at the same time, you need to use the Register API.

See register(UUID userId, RegistrationRequest request) in the Java Client.

If that doesn't work let us know!

from fusionauth-java-client.

mooreds avatar mooreds commented on July 20, 2024

@hantsy I'm going to close this since it is working as designed. Please re-open if I've closed it in error.

from fusionauth-java-client.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.