How the users can create sub-users in SugarCRM? - sugarcrm

Admin can able to create users. After creating, the user will get system generated password and they can login with that password and can do some task. After login, I want to create some more users and they can also will have access to modules.
How can I do it in SugarCRM?

Related

How to allow user to save/fill login info on/from Keychain/Keystore in Flutter

What I want to achieve
Save login credentials (email and password) on Keychain/Keystore.
Fill login form when a user selects corresponding login info from Keychain/Keystore just like attached with some hints shown above keyboard. Example behavior from https://stackoverflow.com/questions/67582718/save-login-info-to-apple-keychain-in-flutter
Being able to delete the credentials from Keychain/Keystore directly when a user wants to.
What I have tried
I have been successful saving and fetching email and password using flutter_secure_storage, but I cannot locate where they are on Keychain. I want to set domain or app bundle id or something to let Keychain/Keystore know that the credentials are for this app, but I cannot find such settings on flutter_secure_storage.

Customizing Login page moodle user type drop down

How can i add dropdown over login page?Although i am php developer but could not understand the feasible way.
i want to customize the the login page like when user comes to login ,he should choose the type as has been registered there.
Suppose Taylor has been registered as trainer.When he come to login page and select the usertype as trainer then he should be logged in otherwise display some error.
enter image description here
This can be done by creating a new field in the Moodle administration > Users > Profile fields form (/user/profile/index.php).
That being said, what is the purpose of a role control at login ? Your image looks like roles you can create and manage inside Moodle.
I mean, if a user logs in and happens to have the engineer platform role, Moodle handles the permissions internally (course access, course editing permissions, etc).
You can add an alternate login page with the alternateloginurl setting.
This will allow you to build your own page, just keep in mind:
The page should contain a form which has the action property set to
'{your moodle site}/login/index.php' and return fields username
and password.
You can read documentation about this setting here

How to login using FaceBook test users (created from the facebook developer app roles page)

Is it possible to login to facebook directly (facebook.com) using the test user account created using the Facebook Developer app feature (Roles / Create test users)? What password should I use? I understand we can use the "Switch to " option after logging in as myself to facebook, but I want to be able to login directly using the test user accounts, so that I can provide these user details for other testers who do need to use their personal facebook account in any way related to the testing of the application.
Yes, we can login directly facebook(facebook.com) with test user accounts.
Step 1
Create test user by clicking Add button
Step 2
Click Edit button where have all option
Change name
Set Password
Generate access token etc.
You can simply change the password of the Test User by issuing a POST request to this URL
https://graph.facebook.com/TEST_USER_ID?password=NEW_PASSWORD&name=NEW_NAME&method=post&access_token=APP_ACCESS_TOKEN
Then you can give other people the account info of that user with the newly set password and they can log in to Facebook as that user.

How to tell zend_auth which user is logged in

I'm struggling with something that should be really easy I think. I have a authentication system on my page built with zend_auth.
It all works flawlessly, but now I wanted to give users the opportunity to log in with twitter.
I've been able to build the whole oauth authentication process, and after a successful twitter authentication I can get the twitter username from twitter.
After that, I do a lookup in my user table, and find the user with that twitter name (I have a column for it in my database).
Now I have the user_id of the logged in user, but how do I get zend_auth to know that that user is logged in? I have a role based rights system stored in the database, so the zend_auth_storage needs to know the ID of the logged in user.
You have to write the user row in the storage yourself .
Zend_Auth::getInstance()->getStorage()->write($userRow);
$userRow can be different in your case its basically the data which get stored in session once user gets logged in generally its a single row in users table (minus the password column for security reasons)

How to use Facebook connect to login in to my database?

I have a mysql membership database run by a Perl script. Account creation or login requires an email address and password. The Perl script then sets cookies (password cookie has encrypted value) which allow users to create, own and modify records. A members table contains user information. I've gone through the FacebookConnect information as well as the forum. Maybe I cannot see the forest for the trees, or maybe this is not possible. In order to use FacebookConnect for logins/account creation, I need to be able to send the user email and password to the the Perl script so that the proper cookies are set. If it were an http it would look like this:
http://domain.com/cgi-bin/perlscript.pl?_cgifunction=login&email=ddd#somedomain.com&password=somepassword.
Any hints or advice would be greatly appreciated.
What you are trying to do isn't really possible in the way that you're describing it.
Facebook Connect basically provides you with a single piece of information: whether your visitor is logged in to their Facebook account or not. If they are, you can get their Facebook ID, if not, you can show them a button (or whatever) and ask them to log into Facebook.
Generally a good approach when using Facebook Connect as an authentication method for your site is to have an internal id for the user's member account, and store a user's Facebook ID alongside that. When a user comes to your site, and they are already logged in to Facebook, you just use their Facebook ID to retrieve the local account. Otherwise you show them your login form to log in locally, and/or a Facebook login button.
The problem you're running into here is that you cannot get someone's email address from Facebook, as it is purposely hidden to protect privacy. If your membership scripts provide only the email/password log-in method, then what you need to do is modify these scripts to create the authentication cookie when given a properly authenticated Facebook ID.
Essentially you'll have two login functions... one for a Facebook login, and one for a regular login. Either function should properly created the local authentication cookie.