Skip approve users when public registration is disabled

I have disabled public registration for my discourse forum. I am creating users through user create API, but these users are being listed in moderator queue for review. I want to avoid this and directly create users. How can i achieve this ??

Have you tried turning off the approve users site setting?

It is turned off, but still if public registration is disabled users are going to moderator queue.
If I enable public registration, users are not going to moderation queue.