# Article Name 3 Ways to Track Spending to OneLogin # Article Summary Explore three practical methods to track spending linked to OneLogin, helping you monitor costs and optimize identity budgets # Original HTML URL on Toriihq.com https://www.toriihq.com/articles/how-to-watch-spending-onelogin # Details Keeping tabs on identity-as-a-service charges can feel fuzzy, especially when OneLogin seats, add-ons, and API calls pile up every month. If you don’t track them, budgets drift and surprises hit finance. This guide walks through three down-to-earth ways to surface those costs, map them to business units, and spot savings before renewal time. Follow along, pick the approach that matches your stack, and regain cost control. ## Use OneLogin's UI The OneLogin admin portal lets you track subscription costs and any extra fees. ### Step 1: Sign in with the right role - Start by signing in to your OneLogin Admin portal using any modern browser. - Confirm the account role includes Billing or Account Owner rights; without those permissions, the Billing tab will stay hidden. ### Step 2: Open the Billing screen - At the top of the screen, open the Settings menu. - In the left panel, select Billing to open the main summary. - If Billing is missing, expand Account Settings and it will appear. ### Step 3: Review the Subscription box - Review Plan Name, Active Seats, and Renewal Date in the Subscription box. - The seat line compares paid user licenses with the number now in use. ### Step 4: Drill into Usage details - Choose View Usage on the right side of the Subscription box to open details. - A detailed chart appears automatically and breaks down: - Active users by individual day - Add-on counts such as MFA tokens or SmartFactor licenses - Hover over any point to display the exact seat count for that date. ### Step 5: Look at past invoices - Return to the Billing screen and open the Invoices tab. - Each line lists Date, Amount, and Status for quick scanning. - Select the PDF icon to download the full invoice should finance need the detail. ### Step 6: Set up spending alerts (optional but handy) - While still in Settings, choose Notifications from the left menu. - Select Billing Alerts to set a spending threshold. - Enter a dollar or seat limit, add recipients, and click Save. - OneLogin instantly emails those contacts once the limit is exceeded. ### Step 7: Export data for a deeper dive - Inside the Usage view, click Export CSV to pull raw numbers. - Open the file in Excel or Sheets and look for trends or unexpected spikes. ### Step 8: Revisit monthly - Set a calendar reminder for the day after each billing cycle ends. - Spending five minutes here each month can prevent an unpleasant invoice surprise. ## Use Torii With Torii [https://www.toriihq.com/], a SaaS management platform (SMP), you monitor OneLogin costs without opening OneLogin. The tool pulls every subscription into one dashboard, giving you a clear record of what you own and what each service costs. To track OneLogin spend in Torii, do the following: ### 1. Sign up for Torii Contact Torii [https://www.toriihq.com/] and request a complimentary two-week proof-of-concept. ### 2. Connect your expense accounts & contracts to Torii Once your workspace is live, connect financial systems such as Coupa or QuickBooks to Torii so it can import OneLogin expense data automatically. If you’d rather not integrate finance systems, drag the agreement files into Torii; its AI scans each contract and records the price. Detailed instructions for the OneLogin integration are here [https://support.toriihq.com/hc/en-us/articles/5165027185435]. ### 3. Search for OneLogin within Torii Type “OneLogin” in the main search field at the top of the Torii dashboard. You’ll land on the OneLogin overview page, where you’ll see license counts, total spend, renewal dates, and other key metrics. ### Or, chat with Eko You can pull OneLogin details in seconds directly from Torii’s dashboard. Torii’s AI sidekick, Eko [https://www.toriihq.com/eko], handles the lookup. Tap the Eko icon at the bottom-right of the dashboard and ask for OneLogin info, then sit back while it works. Moments later, the data appears in the same chat thread. ## Use OneLogin's API Tracking usage starts with calling OneLogin’s Admin API for user counts and login activity. Those figures reveal what you’re paying for and where licenses sit idle. ### 1. Get an access token Before you hit any endpoint, OneLogin’s Admin API expects a short-lived bearer token. - Create a “Server-to-Server” credential in the OneLogin admin portal and copy the clientid and clientsecret. - Call the OAuth endpoint. Save the returned accesstoken; you’ll pass it in every request. ### 2. Count billable users Your invoice comes from the number of active users, not total accounts. The Users endpoint lets you request only IDs so the payload stays tiny. The response headers include X-Total-Count. That number equals your current licensed seats. Multiply it by your per-user price to see the raw monthly charge. ### 3. Find the event type ID for “user logged in” Event type IDs move over time, so fetch them instead of guessing. Scan the JSON for the event whose name is “User Logged In” (or similar) and note its id. ### 4. Pull recent login events Pull a rolling 30-day window for that event and swap in the LOGINID you found. • Each page shows up to 500 events. • Keep following the nextlink field until it’s empty. • Store the actoruserid from each event in a set to get unique logins. ### 5. Compare active logins to licensed seats - Count the unique actoruser_id values from step 4. - Divide that by the seat count from step 2 to see how many licenses are used. - If the ratio is low, you’re over-licensed and overspending. ### 6. Automate and alert - Run the token, user-count, and event pulls daily with a cron job or a serverless function. - Push the numbers to a spreadsheet, database, or dashboard. - Trigger an alert (email, Slack, etc.) when the unused license percentage crosses your comfort line. These few calls let you track OneLogin spend without opening the admin console, rein in wasted seats, and walk into renewal talks with real numbers. ## Torii for SaaS Management If you're looking for a simpler way to stay on top of SaaS Management, we're ready to help. Torii's SaaS Management Platform lets your team: - Find hidden apps: AI continually scans your organization to uncover unapproved software as soon as they appear. - Cut costs: Stop overspending by reclaiming idle licenses and eliminating redundant tools. - Implement on/offboarding automation: Automate employee lifecycle tasks to save time and reduce risk. - Get contract renewal alerts: Receive timely reminders so you never miss a key renewal date. Torii is the industry’s first end-to-end SaaS Management Platform, giving Finance, IT, and Security teams a single source of truth. Explore more at Torii [https://www.toriihq.com]. The platform offers a free trial, and our experts are on standby to walk you through a quick demo.