Skip to content

Salesforce

The Salesforce section has the five tabs of every vendor section and two of its own: People and Connection. It is counted by user.

Costif only reads. It changes nothing in Salesforce: you deactivate a user or change a quantity in Salesforce, and the next sync shows it.

The connection is your own. There is no Costif app to install and nothing is shared with other organisations.

In Salesforce, an administrator:

  1. Makes a user for this connection only, with a permission set that grants API Enabled and View Setup and Configuration, and that lets it see every user. Give it no access to your records.
  2. Makes an external client app with OAuth and the client credentials flow, and sets that user as the flow’s run-as user.
  3. Copies the app’s consumer key and consumer secret, and the org’s My Domain address (https://<name>.my.salesforce.com).

In Costif, a person who may manage integrations opens Salesforce › Connection, chooses Connect Salesforce and enters the My Domain address, the consumer key and the consumer secret. The secret is stored sealed and never shown again. Sync now reads at once; after that Costif reads once a day.

The address must be an https address on the public internet, without a path. login.salesforce.com does not work: use the My Domain address. Our staff cannot set or change a connection in a support session.

Reader From Gives
User licences UserLicense Each user licence with how many are bought and how many are used
Profiles Profile Which user licence a user holds, through the profile
Permission set licences PermissionSetLicense Each permission set licence with how many are bought and used, and its end date
Who holds each permission set licence PermissionSetLicenseAssign The permission set licences of a person
Users User, active users only Name, user name, address, department, title, last login, when the account was made

Costif reads no account, opportunity, case or other business record.

Each reader ends on its own: Read, Read in part, Refused or Failed, with the reason, on the Connection tab. A reader that fails does not stop the others, and what an earlier sync read stays, with its date. A figure whose reader never read says Not read, never zero.

Every active user with the licence they hold and a state:

State Means
Active Logged in within the window
Inactive The last login is before the window
Never logged in No login, and the account is older than the window
New No login yet, and the account is newer than the window
Integration An account for web services: not judged by a login
Not read The last login was not read. Never counted as inactive

The window is the one your organisation sets under Settings in the section’s header: 30, 60 or 90 days, and 90 until you change it.

Action Reason
Licences are assigned to nobody Salesforce counts more of a user licence bought than used. Lower the quantity at the renewal, or use them before buying more. A licence type nobody holds at all is raised only when your price book prices it
Permission set licences are assigned to nobody The same for a permission set licence
People hold a licence and do not log in Inactive or never logged in, as above. Deactivating a user in Salesforce frees the licence; the saving comes when the quantity is lowered at the renewal
Decide the renewal of a contract A Salesforce contract’s decision, notice or end date is coming up

A licence is priced only by your own price book: an entry whose SKU is the licence’s definition key (SFDC for the Salesforce licence, AUL for Salesforce Platform) or its name. Without one, the line and its actions say “Not priced”. No list price is applied, because the org does not say which edition a licence was bought as. See Prices and the catalogue.

  • Which edition a licence was bought as (Sales Cloud or Service Cloud, and at which level): the org’s API does not say, so a licence is priced only from your price book and no move to a cheaper licence is recommended.
  • What a person does in Salesforce beyond logging in: no use of a feature is read.
  • Salesforce’s order and invoice: the quantities bought are the org’s own licence counts.
  • Other Salesforce products with their own user counts, and other orgs: only the connected org is read.
  • Built from Salesforce’s documentation and not yet run against a customer’s org; the request for a token is built from documentation that could not be fetched.