How to create a community user when logged in from another community user in salesforce? - salesforce-communities

When I am trying to insert a community user from commuinity user context, I am getting an error "You are already logged in". I am trying ton insert from a Trigger of a custom object.
Please help.

Related

Unable to create new user in Splunk UI

I'm getting the below error when trying to create a new user in Splunk:
Encountered the following error while trying to save: In handler 'users': Could not get info for role that does not exist: alert_manager
Do I need to disable any apps or delete the files related to any apps from the Splunk directory? Kindly suggest.
Without knowing any further information about your problem or environment, it sounds like the issue is with your alert_manager role, rather than a global issue. Try to create a user with the user role (or another role) and see if that works; if it does, there is a problem with how your alert_manager role is configured (or that role doesn't exist).
To see how to modify or add roles, check out Add and edit roles with Splunk Web in the Splunk docs.

openerp login access denied

I am getting error while login in OpenERP
Access Denied
The requested operation cannot be completed due to security restrictions. Please contact your system administrator.
(Document type: Users, Operation: read)
NOTE
i dont have create the user from user module but I insert the data in user table in database.
for admin it is working fine also it is fine with the user created from OpenERP user module
Showing error only for those user which I insert from database directly
Please help me friends....Your help will highly appreciated
In your res_users table check that the active boolean is true.

More AtTask API POST Issues

I'm working on a project to pull information from a SharePoint calendar and and post it into the atTask Time Off calendar. This should be pretty simple, but nothing in the AtTask API works the way I would expect. I've already asked about the "POST" action deleting existing records. Now I'm running into some strange rights issues.
I have administrator rights in our AtTask sandbox. I am able to access the Time Off records (RESVY) for all users on the system. I am able to delete them without issue. However, I am only able to create new records (POST) for myself. When attempting to create a new record for another user, I'm plugging in the sessionID from my login as the administrator and the other users userID.
The result is an error message: "You do not have sufficient access to edit this User".
It seems odd that the API would allow me to delete the RESVT records for another user, but no create new records.
We are using Active Directory for authentication into AtTask, so I don't have access to the passwords of the other users. This is really getting to be a headache.
Thanks in advance,
Mark
To update another users Time-Off the following 3 scenarios will allow you to mark time-off for another user. This is using the new access module.
You are a system admin
You have User Admin setting enabled in your access level settings (Located under the Fine Tuning option through the Edit Rights at the user level)
You have users who report to you (you are a manager) you will be able to edit users Time-off for users who report to you.

Devise: Allow invited user to register in application

I am using devise_invitable in my application to invite users
https://github.com/scambra/devise_invitable
Using above plugin whenever any user is invited then that user is added in database.
User can accept invitation sent in mail and login into application.
Now, we have one more scenario in our application wherein invited user can also directly register into application with out accepting invitation.
When invited user tries to sign up into application, then validation message "User already exists" is thrown as user is already added in users table.
Can anyone please suggest best solution to allow invited user to register into application.
I don't know devise_invitable, but I think that you just have to override your Devise Controller, so that before trying to create an User, it will test its existence, and if the user has been added to the database but has never signed-in, you update its password and create a session instead of trying to create a new user with the same email !

Cannot install module on openERP

I have a problem in using openERP.
I uninstalled the base kanban module by accident, but I've succeeded to install it back:
But then my installed project management got uninstalled automatically, and now I can't install it back. It says:
"Constraint Error
You can not have two users with the same login !"
I've been looking for solutions through Google but I haven't found any.
"You can not have two users with the same login !" error raise in two condition, either in demo data you have define two or more users with same login or the user with this login already exits in db and it again going to crate user with same login,
please check it
Hope this help
"You can not have two users with the same login !" is an sql_constraint defined in res_users model. There must be a record in res_users in your database which has the login value as of the one you are creating. Also check that the one in the database may be active=False, so it will not appear in the normal tree view, but you can check it by adding an advanced filter in the view.