Communities Flashcards
(40 cards)
How do you configure SAML for Communities?
Use site URL and org id for multiple SAML implementations.
e.g. Recipient=”https://acme.my.site.com/customers/login?so=00DD0000000JsCM”
What OAuth flows are supported for Communities?
All flows except Username-Password & SAML assertion
How is the token passed for OAuth flow in Communities?
As a bearer token in Authorization Header
e.g.
https://site.force.com/customers/services/data/v32.0/ -H
“Authorization: Bearer
00D50000000IehZ!AQcAQH0dMHZfz972Szmpkb58urFRkgeBGsxL_QJWwYMfAbUeeG7c1E6
LYUfiDUkWe6H34r1AAwOR8B8fLEz6n04NPGRrq0FM”
What is the authorize url for Communities in an OAuth flow?
https://acme.my.site.com/customers/services/oauth2/authorize?
What is the URL after the app is authorized in an OAUth flow?
https://acme.my.site.com/customers/services/oauth2/token
What are components of guest user access in Communities?
Guest users get a guest user record and profile
What is external org access set to for Guest Users?
Private
What are limitations of guest users?
- Can’t have more than Read Access
- Can’t be members of Public Groups or Queues
- Can’t get access to records via Manual or Apex Sharing
- Can’t have View All or Modify All access to objects
- Can’t be owner for new records (goes to default owner) or existing records
What kind of Community user can a Non-partner or Person Account create?
Only Customer Community users
What permission do Salesforce license holders need to create external users?
Manage External Users
What permission do Partner & Customer community users need to create external users?
Delegated External User Administration
What does Salesforce do when a user self registers on a community?
Creates a Contact & User record
What is the name of the controller for self registration?
CommunitiesSelfRegController
What are page options for self registration
- Default page
- Configurable self reg page - can use any identifier (e.g. phone number)
- Experience Builder page - can customise look & feel but requires username & password
- VF page - full control - can use CommunitiesSelfReg
What are the methods you need to use in Apex to create Community users?
- CreatePortalUser
- CreateExternalUser
- CreatePersonAccountPortalUser
What records can be created with JIT provisioning over SAML?
User, Contact & Account
In which part of the SAML assertion is information for JIT provisioning sent?
saml:Attribute
Where do you enable JIT provisioning in Salesforce
Single Sign On settings - ‘User Provisioning Enabled’
What are the mandatory values you need to set for JIT provisioning?
SAML UserID Type = ‘Federation ID’
SAML Subject NameID = FederationID
What are the fields you can send on Account for JIT provisioning?
- Name (must be unique)
- AccountNumber (must be unique)
- Owner
What are the fields you can send on Contact for JIT provisioning?
- LastName
2. Email
What are the field you can send on User for JIT provisioning?
- LastName
- Username
- ProfileID
- PortalRole
What is the process sequence for JIT provisioning?
- Find user with matching FederationID
- Search all contacts for match on email
- Search all accounts for match on account name or account number
- if no match at any of the steps above, SF creates account, contact & user
What are the ways of authenticating into a Community?
- Salesforce Identity
- Social Sign On using OpenID Connect
- Federated authentication using SAML
- Delegated authentication using Identity Connect