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

make other org as a default organization #3275

Closed
csetarun2 opened this issue Apr 15, 2023 · 14 comments
Closed

make other org as a default organization #3275

csetarun2 opened this issue Apr 15, 2023 · 14 comments
Labels
bug Something isn't working

Comments

@csetarun2
Copy link

I have integrated okta for authentication,
whenever I open url its redirecting to okta identity(sso) and then its login to default organization and creates new user.
when I switch to other org , that user wont be exist. Since we are going to use other organization , where can I change like whenever user authneticate okta it should reditect to my other org and create user account there.

image

image

since I integrated with okta (sso) , I cant register manually,

@kevgliss @mvilanova any idea on this

@csetarun2
Copy link
Author

Hi @kevgliss any idea how to make default org to other organization, once it authenticate with okta its redirecting into the default org only, how to change this behaviour

@manireddyk
Copy link

hello team,

i also have similar use case where I want to give couple of users to have owner permission on another organization(other than default org). how can we do that?

@kevgliss
Copy link
Contributor

@csetarun2

Hi @kevgliss any idea how to make default org to other organization, once it authenticate with okta its redirecting into the default org only, how to change this behaviour

Just to be clear you wish that on login you are able to configure which organization a user should be redirected to? We do have this flag on the organization's model but it looks like the frontend doesn't currently take this into account. I can make that change but I want to make sure that fits your requirement.

@kevgliss kevgliss added the bug Something isn't working label Apr 19, 2023
@csetarun2
Copy link
Author

Thanks @kevgliss :) is there any db table where I can manually add users record in the db recordset. Before it get resolve I will add our users manually in db tables, so they can able to auth and test.

@kevgliss
Copy link
Contributor

We currently only have the ability to update a user's role via the CLI. I can add an option to create a new user from the cli as well.

Usage: dispatch user update [OPTIONS] EMAIL

  Updates a user's roles.

Options:
  -o, --organization TEXT         Organization to set role for.  [required]
  -r, --role [Owner|Manager|Admin|Member]
                                  Role to be assigned to the user.  [required]
  --help                          Show this message and exit.

@csetarun2
Copy link
Author

It will be helpful, Thanks @kevgliss :)

@kevgliss
Copy link
Contributor

I created the CLI command here:
#3292

You also have the option of going to the register url https://<dispatchUirl>/<organizationSlug>/auth/register for that organization if you have registration enabled (probably not if you have SSO)

Let me see if I can make the SSO redirect respect the original URL such that if you are on /org1/incidents and are presented with a SSO it will send you back to /org1/incidents instead of /default/incidents.

@manireddyk
Copy link

Hi @kevgliss

can we get this feature working in GUI please?

@manireddyk
Copy link

manireddyk commented May 3, 2023

if this can be added to next release would be awesome. I would love to see new users getting added to custom organization using Dispatch GUI.

@kevgliss
Copy link
Contributor

kevgliss commented May 8, 2023

@manireddyk Sorry, I was OOO last week and we have a an offsite this week, I will circle back on this next week.

@manireddyk
Copy link

no problem, Thank you for all the work.

can you please give us option to keep custom as default organization please?

@kevgliss
Copy link
Contributor

@manireddyk I've created #3397 which will allow you to create users manually via the membership UI. I will take a look at the SSO redirect in a separate PR.

@github-actions
Copy link
Contributor

This issue is stale, because it has been open for 30 days with no activity. Remove the stale label or comment, or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Jun 17, 2023
@github-actions
Copy link
Contributor

This issue was closed, because it has been stalled for 5 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants