# Partner Management System

## Overview

Partner Management System (PMS) module provides the following services:

1. Partner Management Service
2. Policy Management Service

For an overview of role of partners in MOSIP, refer [here](https://docs.mosip.io/1.2.0/id-lifecycle-management/support-systems/partner-management-services/partners).

## Partner Management Service

Provides various partner services like onboarding partners and providing partner data to other modules.

The diagram below illustrates the relationship of this service to other MOSIP services.

![](https://1836199994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4EyCrLbFom7vj7UcMIUZ%2Fuploads%2Fgit-blob-efdb3e6fd59ec8479143828ef6a3aa926bab55c4%2Fpms.png?alt=media\&token=741b3674-e471-42d9-9967-83bf54c3ec96)

1. Certificates of partner are uploaded to [Key Manager](https://docs.mosip.io/1.2.0/id-lifecycle-management/supporting-components/keymanager) as part of onboarding.
2. Registration processor fetches ABIS datashare policy from PMS.
3. PMS sends notification messages to partners via notification service (of Kernel).
4. Audit logs are logged into Auditmanager.
5. [ID Repository](https://docs.mosip.io/1.2.0/id-lifecycle-management/identity-issuance/id-repository) fetches credential data share partners and their polices from PMS.
6. All PMS data is stored in `mosip_pms` DB.
7. Certificates of Authentication Partners are sent to IDA module as IDA runs independently. The certs are shared using [Datashare](https://docs.mosip.io/1.2.0/id-lifecycle-management/supporting-components/datashare) (which futher uses Websub to share data with IDA).

## Policy Management Service

This service manages partner policies.

![](https://1836199994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4EyCrLbFom7vj7UcMIUZ%2Fuploads%2Fgit-blob-97500081bb815fb307e2aa834b5a86aa7a66d81b%2Fpolicymanager.png?alt=media\&token=383f854a-53a4-46ca-8406-ee3b530fb292)

1. Audit logs are logged into Auditmanager.
2. All policies are stored stored in `mosip_pms` DB.
3. Datashare service fetches partner policies and shares data with partners accordingly.

## Partner portal

To know more about the partner portal, refer [Partner Management portal](https://docs.mosip.io/1.2.0/id-lifecycle-management/support-systems/partner-management-services/pms-existing/partner-management-portal).

## Developer Guide

To know more about the developer setup, read [Partner Management Services Developers Guide](https://docs.mosip.io/1.2.0/modules/partner-management-services/partner-management-services-developer-setup).

## API

Refer [API Documentation](https://mosip.github.io/documentation/1.2.0/1.2.0.html).

## Source code

[Github repo](https://github.com/mosip/partner-management-services/tree/release-1.2.0).
