Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unauthorized to create user #3

Open
oldekaltera opened this issue Oct 11, 2019 · 5 comments
Open

Unauthorized to create user #3

oldekaltera opened this issue Oct 11, 2019 · 5 comments

Comments

@oldekaltera
Copy link

I have installed the plugin, because there is an need to auto add an user to an organization within CKAN. The installation goes well but after enabling the plugin an tried register an user the system gives an error message with 'Unauthorized to create user'.

The user is created but not auto added to the defined organization, any more issued this? and to fix this. I am working with 2.8.2.

@martinburchell
Copy link
Contributor

Sorry for the long delay in responding. We've only tested the plugin with CKAN 2.7 and haven't yet had the funding to fix it to work with later versions.

@GokulVijayakumarRam
Copy link

The error still exists.
When the _check_access() function is called when adding the new user to the group Forbidden Access message is shown.
I'm using ckan 2.10.3
is there any work around for this?

@martinburchell
Copy link
Contributor

The error still exists. When the _check_access() function is called when adding the new user to the group Forbidden Access message is shown. I'm using ckan 2.10.3 is there any work around for this?

Is your user permitted to add users to this group? Can you add them to the group without the plugin present? I'd be surprised if the plugin works with CKAN 2.10 as it was developed for 2.7 and we haven't had the funding to update it for later CKAN versions.

@GokulVijayakumarRam
Copy link

@martinburchell I can add users to the group from the UI (I have sysadmin access). When trying to add the users automatically when they are registered (by using the plugin), I'm getting the forbidden access message.

_check_access() function inside the ckan.auth module is causing the error.

@martinburchell
Copy link
Contributor

@martinburchell I can add users to the group from the UI (I have sysadmin access). When trying to add the users automatically when they are registered (by using the plugin), I'm getting the forbidden access message.

_check_access() function inside the ckan.auth module is causing the error.

OK. I guess you'll just need to step through the code to see why this is happening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants