Download the PHP package helsingborg-stad/active-directory-api-wp-integration without Composer

On this page you can find all versions of the php package helsingborg-stad/active-directory-api-wp-integration. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package active-directory-api-wp-integration

Active Directory Integration

Integration with the simple active directory api service (https://github.com/helsingborg-stad/active-directory-api). Simply define AD_INTEGRATION_URL with the url to the base directory of the api. The following functions will be enabled by default:

Database modifications

This plugin will alter the index of the user table to require unique usernames. This is not a default behavior for WordPress and may break other plugins related to user management.

WordPress Admin User Actions

When bulk import is enabled, the plugin adds an "Update from AD" action to each user in the WordPress admin user list (Users → All Users). This allows administrators to manually update individual user profiles from Active Directory with a single click.

How to use:

  1. Navigate to Users → All Users in WordPress admin
  2. Hover over a user row
  3. Click "Update from AD" link
  4. The user's profile will be updated with the latest information from Active Directory
  5. A success or error message will be displayed

WP-CLI Commands

The plugin provides WP-CLI commands for managing bulk operations with clear logging. This is the recommended approach for production environments.

User Synchronization Commands

Sync users with Active Directory

Imports new users from AD and removes users that no longer exist:

Update user profiles

Updates all WordPress user profiles with latest data from AD:

Propagate users (Multisite)

Adds all users to all sites in the network:

Individual User Management (CRUD Operations)

Manage individual users with get, update, and delete operations.

Get user information from Active Directory

Retrieves user details from AD and shows WordPress status:

Update user profile from Active Directory

Updates an existing WordPress user's profile from AD, or creates the user if --create flag is used:

Delete user from WordPress

Removes a user from WordPress (requires confirmation):

Cleaning Commands

Remove duplicate users

Remove orphaned user metadata

Remove empty user capabilities

Trigger manual bulkimport (Legacy - Query Parameters)

⚠️ Deprecated: Query parameter triggers are maintained for backward compatibility but WP-CLI commands are recommended for better logging and monitoring.

Import new users / remove old: https://site.dev/wp-admin/?adbulkimport Update registered profiles: https://site.dev/wp-admin/?adbulkprofile Propagate user roles to all sites: https://site.dev/wp-admin/?adbulkpropagate

Trigger manual cleaning actions (Legacy - Query Parameters)

⚠️ Deprecated: Query parameter triggers are maintained for backward compatibility but WP-CLI commands are recommended.

Remove duplicate users: https://site.dev/wp-admin/?adcleanusers Remove orphan user meta: https://site.dev/wp-admin/?adcleanmeta Remove user capabilitys that are empty: https://site.dev/wp-admin/?adcleancap

Options (Define Constants)

Options Bulk Import (Define Constants)

These options imports all users avabile in active directory nightly.

Options Auto Create Users

These options creates a user on the site if it exists in active directory on signon.

Filters

Filter the meta keys stored in the database.

Filter the default redirect to page, subscribers may not be affected to this (to homepage as default)

Example configuration


All versions of active-directory-api-wp-integration with dependencies

PHP Build Version
Package Version
Requires helsingborg-stad/wpservice Version ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package helsingborg-stad/active-directory-api-wp-integration contains the following files

Loading the files please wait ...