PHPackages                             arsanchez/laravel-azure-provisioning - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. arsanchez/laravel-azure-provisioning

ActiveLibrary

arsanchez/laravel-azure-provisioning
====================================

This package adds a SCIM server, specifically designed to work with Microsoft Azure Active Directory, to your Laravel application.

1.1.10(1y ago)0219↓100%MITPHPPHP ^7.3|^8.0

Since Oct 4Pushed 1y agoCompare

[ Source](https://github.com/arsanchez/LaravelAzureProvisioning)[ Packagist](https://packagist.org/packages/arsanchez/laravel-azure-provisioning)[ RSS](/packages/arsanchez-laravel-azure-provisioning/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (8)Versions (13)Used By (0)

Laravel Azure Provisioning
==========================

[](#laravel-azure-provisioning)

[![](https://camo.githubusercontent.com/03848863e7dc64e4dfae7721ed409643a79ebe2851fadcaebf1e2e2862e0e468/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f526f6254726568792f4c61726176656c417a75726550726f766973696f6e696e672f556e697425323054657374733f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/03848863e7dc64e4dfae7721ed409643a79ebe2851fadcaebf1e2e2862e0e468/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f526f6254726568792f4c61726176656c417a75726550726f766973696f6e696e672f556e697425323054657374733f7374796c653d666c61742d737175617265)[![](https://camo.githubusercontent.com/ba568d94ff66cd2beb5ef8bc6807240b09154175590d25cea8b70ff1c381debc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f526f6254726568792f4c61726176656c417a75726550726f766973696f6e696e673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/ba568d94ff66cd2beb5ef8bc6807240b09154175590d25cea8b70ff1c381debc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f526f6254726568792f4c61726176656c417a75726550726f766973696f6e696e673f7374796c653d666c61742d737175617265)[![](https://camo.githubusercontent.com/e1583df45fd903f8b227d75dcba12294bc86476cade31963f361c26beba2d092/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f526f6254726568792f4c61726176656c417a75726550726f766973696f6e696e673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/e1583df45fd903f8b227d75dcba12294bc86476cade31963f361c26beba2d092/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f526f6254726568792f4c61726176656c417a75726550726f766973696f6e696e673f7374796c653d666c61742d737175617265)[![](https://camo.githubusercontent.com/c71cb195ccb564d907f71ae35134bff1f93ca9b021c28429e8d5ba6fa140fb11/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726f6274726568792f6c61726176656c2d617a7572652d70726f766973696f6e696e673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/c71cb195ccb564d907f71ae35134bff1f93ca9b021c28429e8d5ba6fa140fb11/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726f6274726568792f6c61726176656c2d617a7572652d70726f766973696f6e696e673f7374796c653d666c61742d737175617265)[![](https://camo.githubusercontent.com/3c6d4709cb436ddaa590c9160c77ea50311f00746b0e287120d97aaff8412120/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726f6274726568792f6c61726176656c2d617a7572652d70726f766973696f6e696e673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/3c6d4709cb436ddaa590c9160c77ea50311f00746b0e287120d97aaff8412120/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726f6274726568792f6c61726176656c2d617a7572652d70726f766973696f6e696e673f7374796c653d666c61742d737175617265)

This package `robtrehy\laravel-azure-provisioning` adds a SCIM server, specifically designed to work with Microsoft Azure Active Directory, to your Laravel application.

The SCIM server enables you to create Users and Groups from your Azure Active Directory (AAD) automatically in your Laravel Application.

You can configure your AAD Enterprise Application to either provision all of your users and groups, just your users, or selected users or groups.

Prerequisites
-------------

[](#prerequisites)

- A username field is required
    - Modify your model and migration to include a username field
    - Add username to the $fillable property of your user model
- We recommend use of an active/status field for user soft delete
- The default configuration will create a [`spatie/laravel-permission`](https://spatie.be/docs/laravel-permission/v4/installation-laravel) Role for each Group. To use the default configuration ensure you have required [`spatie/laravel-permission`](https://spatie.be/docs/laravel-permission/v4/installation-laravel)

Installation
------------

[](#installation)

1. Run `composer require robtrehy/laravel-azure-provisioning` to include this in your project.
2. Run `php artisan vendor:publish --provider="RobTrehy\LaravelAzureProvisioning\AzureProvisioningProvider"`.
3. Modify the published configuration file to your requirements. The file is located at `config/azureprovisioning.php`.

Configuration (Laravel)
-----------------------

[](#configuration-laravel)

1. Open `config/azureprovisioning.php` to adjust the packages configuration

    If the file doesn't exist, ensure you have ran `php artisan vendor:publish --provider="RobTrehy\LaravelAzureProvisioning\AzureProvisioningProvider"`.
2. Modify the configuration as required. All fields are commented and should provide enough description for how they change the way this package works.
3. If you do not wish to provision Groups you can entirely remove (or comment) the `Groups` key.

Configuration (Azure)
---------------------

[](#configuration-azure)

1. Login to Azure Active Directory
2. Select **All services** &gt; **Enterprise applications**
3. Select **New application**
4. Select **Create your own application**
5. Provide your application's name and select the option *"Integrate any other application you don't find in the gallery (Non-gallery)"*
6. **A) To provision all users/groups**

    - On the properties page, ensure the option *"User assignment required?"* is set to **No**

**--OR--**

6. **B) To provision select users/groups**

    - On the Properties page, ensure the option *"User assignment required?"* is set to **Yes**
    - On the Users and groups page, add the users and groups that you wish to provision
7. Navigate to the Provisioning page
8. Set the Provisioning Mode to **Automatic**
9. In the Admin Credentials section set the Tenant URL to your domain (with https://) followed by `/scim/v2.0/` (Or the value you have set in in the `routePrefix` configuration option). (e.g. `https://laravel-azure-provisioning.com/scim/v2.0/`)
10. **TODO: Provide the secret token generated by ... ?**
11. Test the configuration and then save the settings
12. Expand the mapping section and remove any mappings that are not required by your application and add mappings that are missing and required by your application.
13. Save the settings again

**Note:** If you only want users within set groups to be provisioned, follow the steps in **6 B)** and add the groups you require. Only the members of the group will then be provisioned.

License
-------

[](#license)

This Laravel package is free software distributed under the terms of the MIT license. See [LICENSE](LICENSE)

###  Health Score

33

—

LowBetter than 76% of packages

Maintenance47

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~46 days

Recently: every ~122 days

Total

12

Last Release

398d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dadef3ac66c2e1a63bcc42175563dd804798e34a7726b92397c24281414ca7e2?d=identicon)[arsanchez](/maintainers/arsanchez)

---

Top Contributors

[![arsanchez-addi](https://avatars.githubusercontent.com/u/103540206?v=4)](https://github.com/arsanchez-addi "arsanchez-addi (15 commits)")[![RobTrehy](https://avatars.githubusercontent.com/u/13102009?v=4)](https://github.com/RobTrehy "RobTrehy (13 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")[![arsanchez](https://avatars.githubusercontent.com/u/4694571?v=4)](https://github.com/arsanchez "arsanchez (3 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/arsanchez-laravel-azure-provisioning/health.svg)

```
[![Health](https://phpackages.com/badges/arsanchez-laravel-azure-provisioning/health.svg)](https://phpackages.com/packages/arsanchez-laravel-azure-provisioning)
```

###  Alternatives

[spatie/laravel-analytics

A Laravel package to retrieve Google Analytics data.

3.2k5.6M50](/packages/spatie-laravel-analytics)[orchestra/workbench

Workbench Companion for Laravel Packages Development

7916.0M29](/packages/orchestra-workbench)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
