> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ulm.m1amdocs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Revoke Access to an Account, Subscription, or Feature Process

## Remove Account or Service from a User

This Process enables a Group's Primary User to remove account or service access from a Regular User who is in the Group and associated to that account/service.

**Note:** This Process is distinct from the [Remove User from Group](c_removeUserFromGroup) Process that kicks the target User out of the Group, thereby revoking access to all associations the target User has with the Accounts, Subscriptions, or Features in that Group.

## Assigning and Revoking Permissions

During the [Share Access to an Account, Subscription, or Feature](c_shareAccessASF) Process, an account or service's Primary User (the Digital Identity Management User who pays for, and [associates](c_associateBillingAccountV2), the account or service being shared) gives another Digital Identity Management User a set of specific permissions to the Digital Identity Management Account, Subscription, or Feature that represents the account or service. That Process also adds the target User to the relevant Digital Identity Management Group, if they are not already added to it.

\[product: dim]<img src="https://mintcdn.com/amdocs-ulm/XSI-_zBHRIt1HJAz/portal/m1Connect/processGuide/images/m1c_revokeAssignPermissions.png?fit=max&auto=format&n=XSI-_zBHRIt1HJAz&q=85&s=f814cc467536c51fe10d2b7da92e6515" alt="" width="1750" height="980" data-path="portal/m1Connect/processGuide/images/m1c_revokeAssignPermissions.png" />\[/product: dim]

However, if the target user no more associations to any other entitlement entities in the Group, then the Process will automatically remove the target User entity from the Group.

<img src="https://mintcdn.com/amdocs-ulm/XSI-_zBHRIt1HJAz/portal/m1Connect/processGuide/images/m1c_revokeRemovePermissions.png?fit=max&auto=format&n=XSI-_zBHRIt1HJAz&q=85&s=bbe53fc3b5dbad859eea379be6c04543" alt="" width="1750" height="965" data-path="portal/m1Connect/processGuide/images/m1c_revokeRemovePermissions.png" />

In the most typical use case, a Primary User invokes this Process to revoke another Digital Identity Management User's `consumption` permissions. However, there are a few variations on this flow, depending on the user invoking the Process, and the user to whom it is applied:

* The Primary User can remove any permissions (`admin`, `consumption`, and `admin+consumption`) from other Users.
* An Admin User can remove `consumption` permissions from a Regular User.
* An Admin User cannot remove any permissions from The Primary User, or other Admin Users (if any).
* A Regular User cannot remove any permissions from any other User.

## Process Flow

This flow describes the Process at a high level.

**Preconditions**

* The Primary (or Admin) user is currently authenticated in Digital Identity Management.
* The current user has the proper permissions to act upon the target User:
  * The Primary User can invoke this Process on Admin and Regular Users
  * Admin Users (Users with `admin` permissions) can only invoke this Process on Regular Users

**Basic Flow**

1. The user authenticates, and then navigates to their service management section of their client application/profile.
2. The user reviews their currently associated accounts and services, and the other end users that are sharing access to those entitlements. The current user then selects a user and one or more accounts/services to remove from that target user.
   * The Process requires the client to specify the target User entity and the Account/Subscription/Feature(s) to remove by their unique, internal `id` number (the `id` is a property on every Digital Identity Management entity). The client can leverage additional Digital Identity Management APIs to retrieve the relevant information, and render meaningful choices to the user when they navigate to their profile within your application:
     * `GET user/groups` — Retrieve a list of Groups to which the current User is associated. Each Group object includes an `id` property.
     * `GET group/{groupId}/users` — Retrieve a list of Users associated to the Group specified by the Group `id`
   * If the target User is sharing access to more than one account or service in the Group, then the client (i.e., the Group Primary User) can select multiple entitlement entities to remove at once.
3. Digital Identity Management removes the target User from the selected account(s) or service(s).
   * Digital Identity Management removes the association between the target User entity and the specified Account, Subscription, or Feature entities.
   * Removing a User entity from a single entitlement entity in an A/S/F hierarchy does not cascade up or down that hierarchy. In other words, if a target User is associated to both an Account and a Subscription within a single A/S/F hierarchy, revoking one association does not affect the other association.
4. (**Conditional**) Digital Identity Management removes the target User from associated Digital Identity Management Group if that User no longer has any associations to any entities in the A/S/F hierarchy.

**Post-conditions**

* The User is removed from specified account or service.

**Possible or Common Errors**

* The user does not have the sufficient permission level to perform this action on the selects account or service.

## Settings

This Process currently has no relevant settings that configure the Process API response or Process logic/behaviour.

However, additional settings may be introduced over the course of future releases.

## User Journey Diagram

This diagram illustrates the standard user journey using the **Revoke Access to A/S/F** Process.

\[product: dim]<img src="https://mintcdn.com/amdocs-ulm/XSI-_zBHRIt1HJAz/portal/m1Connect/processGuide/images/m1c_userJourneyRevokeAccess.png?fit=max&auto=format&n=XSI-_zBHRIt1HJAz&q=85&s=30274173edb013d10751a514ceb3fc6d" alt="" width="1750" height="2193" data-path="portal/m1Connect/processGuide/images/m1c_userJourneyRevokeAccess.png" />\[/product: dim]

## Use Cases

The following use cases provide guided API walk-throughs of this Process for client developers:

* [Revoke access to A/S/F](c_revokeAccessASF)

* [Single step revoke A/S/F access](c_useCaseSingleStepRevoke)

* [Revoke A/S/F access errors](c_revokeASFErrors)

* **[Revoke access to A/S/F entities](../topics/c_useCaseRevokeAccessASF)**

* **[Single step revoke access](../topics/c_useCaseSingleStepRevoke)**

* **[Revoke A/S/F errors](../topics/c_revokeASFErrors)**

**Parent topic:**[Account Association & Management Processes](../images/c_accountProcesses)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.