dispatch icon indicating copy to clipboard operation
dispatch copied to clipboard

make other org as a default organization

Open csetarun2 opened this issue 3 years ago • 14 comments

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 avatar Apr 15 '23 13:04 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

csetarun2 avatar Apr 19 '23 18:04 csetarun2

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?

manireddyk avatar Apr 19 '23 20:04 manireddyk

@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 avatar Apr 19 '23 22:04 kevgliss

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.

csetarun2 avatar Apr 20 '23 17:04 csetarun2

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.

kevgliss avatar Apr 21 '23 16:04 kevgliss

It will be helpful, Thanks @kevgliss :)

csetarun2 avatar Apr 21 '23 16:04 csetarun2

I created the CLI command here: https://github.com/Netflix/dispatch/pull/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.

kevgliss avatar Apr 21 '23 16:04 kevgliss

Hi @kevgliss

can we get this feature working in GUI please?

manireddyk avatar May 02 '23 18:05 manireddyk

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.

manireddyk avatar May 03 '23 15:05 manireddyk

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

kevgliss avatar May 08 '23 18:05 kevgliss

no problem, Thank you for all the work.

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

manireddyk avatar May 11 '23 19:05 manireddyk

@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.

kevgliss avatar May 17 '23 19:05 kevgliss

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[bot] avatar Jun 17 '23 00:06 github-actions[bot]

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

github-actions[bot] avatar Jun 22 '23 00:06 github-actions[bot]