πŸ”—

Connect to SharePoint via Microsoft Graph API

Your expense tool will sync records to a SharePoint List and upload receipts to a Document Library automatically β€” using your existing Microsoft 365 accounts. No extra software needed.

1
Azure AD App
Register app in Entra ID
2
Permissions
Sites.ReadWrite.All
3
SharePoint Config
Site URL + List name
4
Test & Activate
Verify sync works
πŸ“– Setup Guide
πŸ”§ API Configuration
πŸ“‹ SharePoint Schema
🌐 Custom Domain

🏒 Step 1 β€” Register an App in Azure AD (Entra ID)

  • Go to portal.azure.com β†’ Azure Active Directory β†’ App Registrations β†’ New Registration
  • Name it Ayspire Expense Tracker, set Redirect URI to your tool's URL
  • Under API Permissions, add: Sites.ReadWrite.All, Files.ReadWrite.All, User.Read
  • Copy the Application (Client) ID and Tenant ID β€” you'll need these below

πŸ“‹ Step 2 β€” Create the SharePoint List

  • In your SharePoint site, go to Site Contents β†’ New β†’ List
  • Name it AyspireExpenses
  • Add columns as per the Schema tab (all single-line text unless noted)
  • Create a Document Library named ExpenseReceipts for file uploads

πŸ” Step 3 β€” Authentication Flow

  • This tool uses MSAL.js (Microsoft Authentication Library) β€” employees sign in with their @ayspireinc.com accounts
  • The Graph API token is used per-session β€” no passwords are stored
  • Employees only see their own records; managers (set via SharePoint Group) see all
Submit Expense
File a reimbursement β€” syncs automatically to SharePoint
⚠️ SharePoint not connected β€” expenses saved locally
Total Submitted
$0
This month
Pending Review
0
Awaiting approval
Approved
$0
0 expenses
Paid Out
$0
New Expense Request
Fill in all required fields β€” receipt uploads go to SharePoint Document Library
🧾

Click to upload or drag & drop

PDF, PNG, JPG β€” stored in ExpenseReceipts library

My Expense History
0 submissions
DateCategoryVendorDescriptionAmountStatusReceiptSP Sync
πŸ“­

No expenses submitted yet

Manager Dashboard
All data synced with SharePoint β€” approve, reject, and mark paid
Total Submitted
$0
0 expenses
Awaiting Review
0
Need your action
Approved (Unpaid)
$0
Ready to pay
Total Paid Out
$0
πŸ”— Synced to SP
πŸ“Š Spend by Category
πŸ“ˆ Monthly Spend Trend
πŸ‘₯ Spend by Employee
πŸ“‹ Status Breakdown
πŸ’° Budget Overview
Monthly budget usage by category

Loading budget data...

#EmployeeDateCategoryVendorDescriptionAmountStatusSPActions
πŸ“­

No expenses submitted yet

πŸ‘‘ Admin Panel
Manage user roles β€” controls who can access Manager View and Admin settings
Add User Role
Assign a role to an Ayspire team member by their email address
User Roles
0 users configured
πŸ‘‘ Admin πŸ“Š Manager πŸ‘€ Employee
EmailRoleAddedActions
πŸ‘₯

No users configured β€” all users default to Employee role

ℹ️ How Roles Work

  • Employee β€” Can submit expenses and view their own expense history. Cannot see other employees' expenses.
  • Manager β€” Can submit expenses + access Manager View to approve, reject, and mark expenses as paid.
  • Admin β€” Full access to all features including Manager View, SharePoint Setup, and this Admin Panel.
  • Users not in the list default to Employee role.
  • Roles are stored in the SharePoint list AyspireRoles. You may need to create this list (see below).
πŸ“‹ Expense Policies
Configure spending limits and receipt requirements
Expenses above this amount require review
Expenses at or above this amount need a receipt
One per line. Format: "Category Name: $amount"
πŸ’° Monthly Budget Configuration
Set budgets per category for current month

Loading categories...

βœ