---
schema_version: "1"
id: 23836f9841791fb16898216b30346274968ed207aeb8d8c7ab0a04e2145ff809
title: Deleting the Local User After Installing Anypoint Platform PCE
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/private-cloud/4.2/install-disable-local-user.md
canonical_url: https://docs.mulesoft.com/private-cloud/4.2/install-disable-local-user
source_site: docs.mulesoft.com
content_type: documentation
content_hash: d35c2de3d58b1c19c6f77278cd41e26f1049fc758881c704a147e7774af888ec
description: MuleSoft Documentation Site
release: "4.2"
latest: false
---
---
product: Anypoint Platform Private Cloud Edition
version: 4.2
---

# Deleting the Local User After Installing Anypoint Platform PCE

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

During installation, Anypoint Platform Private Cloud Edition (Anypoint Platform PCE) creates a local
Anypoint Platform user that enables you to configure platform components during installation. The
credentials for this user are stored locally in Anypoint Platform. However, after configuring an
external authentication provider such as LDAP, you should delete this user to improve security.

1.  Before deleting the local user, perform the following steps:

    - Install and configure your external identity provider.

    - Ensure that `SystemAdmin` user is not the owner of any other organizations.

2.  Select the new user to whom you want to assign administrator privileges. This user must be
    defined in your external identity provider.

3.  Determine the internal user ID for this user.

    1.  From Anypoint Platform, select **Access Management**.

    2.  Select **Users**.

    3.  Select the name of the user.

    4.  Record the internal user ID. This ID appears in the URL as:

        ![Example of User ID in the URL](/mulesoft/current/en-us/private-cloud/4.2/_images/access-management-user-id.png)

4.  Configure your installer machine with \`kubeconfig.yaml to access the Anypoint Platform PCE K8s
    cluster.

    1.  Set the environment variable `KUBECONFIG=/path/to/kubeconfig.yaml`.

    2.  Check access to kubernetes cluster with `kubectl get nodes`.

5.  Identify one of the `authentication-server` containers:

    kubectl get pods -n access-management -l component=authentication-server

6.  Change the owner, providing the internal the `authentication-server` container and user ID
    obtained earlier:

    kubectl exec -it -n access-management <authentication-server-pod> -c application – node
    bin/change\_owner.js --new-owner-id <user\_id>

    This command changes the owner from the default system user to a new user managed by the
    external authentication provider. The command you use should be similar to the following
    example:

    kubectl exec -it -n access-management <authentication-server-pod> -c application – node
    bin/change\_owner.js --new-owner-id a363279f-982f-493c-b08f-9feb91be90d4

7.  Disable and delete the `System Admin` user.

    1.  Log in as the user you just added as the organization owner.

    2.  From Anypoint Platform, select **Access Management**.

    3.  Select **Users**.

    4.  Select `username` in the same row as `SystemAdmin`.

    5.  Select **Disable**.

    6.  Select **Delete**.

This removes the default user from the platform.

## See Also

- [Configuring Anypoint Platform PCE](https://docs.mulesoft.com/private-cloud/4.2/config-workflow)
