Book Image

VMware vRealize Orchestrator Cookbook

By : Daniel Langenhan
Book Image

VMware vRealize Orchestrator Cookbook

By: Daniel Langenhan

Overview of this book

Table of Contents (15 chapters)
VMware vRealize Orchestrator Cookbook
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Changing credentials


This recipe will show you how to use the Change credential element to change the user who is currently executing the workflow.

Getting ready

We need to create a new workflow.

For this recipe, you will need to have more than one AD/LDAP group configured to have access to Orchestrator. Remember that you can use the Orchestrator internal LDAP to test this. To facilitate this, please follow the User management recipe in Chapter 5, Basic Orchestrator Operations.

How to do it...

  1. Create a new workflow with the following variable:

    Name

    Type

    Section

    Use

    newCredential

    Credential

    IN

    The user name and password of the new user

  2. Drag a Change credential element onto the schema.

  3. Bind the newCredential in-parameter to the Change credential element.

  4. Now, drag one System log element before and one after the Change credential element.

  5. Edit the System log elements. Remove the text input and change the log to workflow.runningUserName. This will log the username that is currently running...