One way is to increase the number of users in your subscription to cover the number of users in your organization, such that everyone has a username. Alternatively, you would have to share the application with everyone in the portal and authenticate users in your flex application.
Thanks,
Mike