Disti only post

Assumption:

A distributor will have a

  • My Nutanix (my.nutanix.com) IDP account with ROLES: ‘FRONTLINE’, ‘PARTNER’
  • They will have a Contact with same email address in Salesforce
  • The Contact will be linked to a Distributor

Flow:

  • A Distributor will login to My Nutanix, and On successful login, they will see a tile for ‘Frontline’ in their Dashboard. ( SAAS-8268 – Add Frontline Tile in My Nutanix dashboard CLOSED ) 
  • Once they click on Frontline tile, it should take user to https://frontline.nutanix.com/#/mynutanix (on respective environment for idp stage/dev)
  • Frontline should authenticate a user via my nutanix provider if a user has landed on above route (/#/mynutanix)
    • Frontline need to register as a client (app) on IDP – We need to work with Identity team for the same
    • While registering, Frontline will need to provide redirection URL
    • It can use OAuth2 for authentication flow – Here is how Sizer does it: My Nutanix Authentication
  • Frontline will successfully authenticate a user only if they have ‘FRONTLINE’ and ‘PARTNER’ roles in IDP, otherwise show a page with not authorized error
  • We may provide access to CUSTOMERS or other OEM Partners in future, so above roles should be configurable.
  • We should internally assign ‘DISTRIBUTOR’ role to these users, and should have all checks/restrictions within frontline based on this role (instead of external IDP roles).

User – Distributor Linking:

  • On Successful login to Frontline via My Nutanix, if the user has ‘PARTNER’ Role assigned in IDP, we should try to Find a Contact in Salesforce with user’s email address.
  • If Contact is not found, they we should display a page asking user to contact Partner Help (partnerquoting@nutanix.com)
  • If Contact is found, then we should find the Distributor Account linked to a contact. Information is available in Field: Account Name (SFDC API Name: AccountId) (e.g. Contact: Mr. Jeffrey Anderson)
  • Again, if Distributor is not found, we can show an error that Your account is not linked to any distributor, please reach out to Partner Help (partnerquoting@nutanix.com)
  • Once Distributor is matched, we successfully have a linking b/w a my nutanix user and Salesforce Distributor.

Distributor – Opportunity Linking:

  • If we have a Distributor, we can get Distributor Opportunities (e.g. for Promark Technology)
  • To get all opportunities linked to a Distributor, We need to query Opportunity table and get all records which has ‘Distributor__c’ as Distributor’s SFDC ID.
  • For Any operation from UI for distributors, we should have extra validations in Backend to make sure user has access to the provided opportunity say while creating / edit quotes etc.

Frontline My Nutanix User behavior:

  • We have to assume that My Nutanix user will not be a valid Salesforce User.
  • So all Sync operations in Salesforce should be done via ‘Frontline Admin’ user only (Created By / Modified By etc.)
  • But in Frontline, we need to maintain Created By, Modified By as My Nutanix user’s name etc.

Logout and Re-login:

  • On Logout, we should redirect the distributor user to https://my.nutanix.com/ just like we redirect Internal employees to Okta home on logout.
  • For Re-login, users will come via My Nutanix Home.
  • We do not want to add login page with two different login options (okta / mynutanix), as it will add a click for all our regular users.
  • Drawback of above feature is, Distributors my not be able to login to Frontline if they directly enter frontline url. 

In Future, we may want to have a screen with two login options like below (But not part of MVP) – Also we can discuss if its even needed.

Access Control disti:

  • Distributor should NOT be able to view opportunity details page if they don’t have access to that opportunity.
  • Distributor should NOT be able to view account details page if they don’t have access to at least one opportunity under that account.
  • Distributor should NOT be able to view a quote, if the distributor on that quote is not same as Disti which current user is linked to.
  • Distributors should only be able to quote products if quote visibility field has ‘Partners’ in it.

Post Login, the behavior for distributor quoting is documented in following PRD:

https://docs.google.com/document/d/18U_MqTKwWOK_HbBP3cWA4O28-H8AhuJYuTCKSrEoa30/edit#