Cumulocity IoT SSO login FAQ
Tags: iot, cumulocity, sso, faq
Published: 2023-07-03 07:46:57

---
title: Cumulocity IoT SSO login FAQ
published: true
date: 2023-06-20 10:20:47 UTC
tags: iot, cumulocity, sso, faq
canonical_url: https://tech.forums.softwareag.com/t/cumulocity-iot-sso-login-faq/279648
---

 

## Cumulocity IoT SSO login FAQ

### What will happen if I delete the local cumulocity user?

- If you delete the local cumulocity user and try to login using next time using SSO, SSO would create the local user without assigning any role. The administrator must do the role mapping again to have proper cumulocity access to that user.

### What will happen if I delete the SSO user?

- If you delete the SSO user, Cumulocity will have a local user, but it does not store the credentials in cumulocity, so login does not work. The local user must be cleaned up by Administrator and User must sign up again in SSO. The Administrator must assign the right role, so the user would have the right permission.

### What will happen if local cumulocity user still there and SSO sign up using same email id / user Id

- It will create a SSO user by keeping the local user and it’s role mapping intact and same user would be available as SSO as well as the local user but it throws an error.

### How to assign a default role to a user on SSO Sign up

- We can use dynamic role mapping in Cumulocity SSO to assign a default role on SSO signup and it will allow user to login into default app with limited access controlled by default role.  
[Administration - Cumulocity IoT Guides](http://cumulocity.com/guides/users-guide/administration/#configuring-single-sign-on)

### How to get rid of the default Cumulocity basic Auth form

- Using the login form CSS the basic auth login form can be hidden by adding a global CSS file and hiding that class as not to display.

### Is this possible to have land user in a static page and later route the user to a right application based on their role or access?

- Yes, we can create a custom application with a static HTML page and a default global role. Assign the default global role to the user on SSO sign up using SSO dynamic role mapping and user should be redirected to this custom application by default by setting this custom app as tenant default application. The default role will have no cumulocity access except the custom application.  
This custom application will have the logic to check SSO user’s role and based on that route the user to right application. This routing can happen seamlessly with addition authentication since these are SSO users and no additional authentication required.

## Useful links
 - [Using Auth0 as Single-Sign-On for Cumulocity IoT] (https://tech.forums.softwareag.com/t/using-auth0-as-single-sign-on-for-cumulocity-iot/256849)
 - [How to simplify login authentication when switching between multiple tenants/subtenants](https://tech.forums.softwareag.com/t/how-to-simplify-login-authentication-when-switching-between-multiple-tenants-subtenants/278401)
 - [Cumulocity IoT SSO Integration with Okta](https://tech.forums.softwareag.com/t/cumulocity-iot-sso-integration-with-okta/243854)

[Read full topic](https://tech.forums.softwareag.com/t/cumulocity-iot-sso-login-faq/279648)