# Get Secure Credentialsアクティビティでログイン名とパスワードが取得できない

**URL:** <https://forum.uipath.com/t/get-secure-credentials/742255>\
**Category:** フォーラム\
**Created:** [May 21, 2024, 12:21am UTC](https://forum.uipath.com/t/get-secure-credentials/742255 "2024-05-21T00:21:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![gorby](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/gorby/32/543563_2.png) [@gorby](https://forum.uipath.com/u/gorby)\
**Post date:** [May 21, 2024, 12:21am UTC](https://forum.uipath.com/t/get-secure-credentials/742255/1 "2024-05-21T00:21:24Z")

</div>

おはようございます。  
UiPath Studio 2024.4.0 Community editionのユーザです。

１．やりたいこと

RPA訓練サイト"[ACME System 1 - Log In](https://acme-test.uipath.com/login)"  
にGet Secure Credentialsアクティビティでログインしたい。

２．悩んでいること

Windows10のWindows資格情報マネージャにアカウントを登録して、Get Secure Credentialsアクティビティのプロパティを設定して、  
WFを動かしましたが、Get Secure Credentialsアクティビティ通過後もログイン名とパスワードを格納する変数の値がNullです。  
いろいろ調査しましたが原因が分かりませんでした。有識者の方アドバイスをお願い致します。

追伸１：  
添付画像が古く、インターネットまたはネットワークのアドレスが"ACME\_System1ログイン情報"となってますが、"ACME\_System1"に修正しても結果は変わりませんでした。  
追伸２：  
別PCでもこのトラブルは再現しました。原因はWebサイト側にあると考えますがいかがでしょうか。

 ![Windows資格情報](https://global.discourse-cdn.com/uipath/original/4X/c/c/7/cc7379f70b6a2ef5207684b8d510a3022747e419.png)  
 ![ログイン名に値が入らない](https://global.discourse-cdn.com/uipath/original/4X/e/1/e/e1e6f26b65b50e3f922755b67f78571d9f02b36e.png)

---

<div class="post-metadata">

**Author:** ![Kanak\_Lata\_Singh](https://avatars.discourse-cdn.com/v4/letter/k/c68b51/32.png) [@Kanak\_Lata\_Singh](https://forum.uipath.com/u/Kanak_Lata_Singh)\
**Post date:** [May 21, 2024, 1:34am UTC](https://forum.uipath.com/t/get-secure-credentials/742255/2 "2024-05-21T01:34:00Z")

</div>

Hi @gorby

Please use assign activity and convert the password value to a secure string like this :  
new System.Net.NetworkCredential(string.Empty, OutlookPassword).Password.  
Please try , hope it helps .

---

<div class="post-metadata">

**Author:** ![gorby](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/gorby/32/543563_2.png) [@gorby](https://forum.uipath.com/u/gorby)\
**Post date:** [May 21, 2024, 1:48am UTC](https://forum.uipath.com/t/get-secure-credentials/742255/3 "2024-05-21T01:48:59Z")

</div>

Hi It seems Get Secure Credentials activity automatically captures password as secureString from Windows credentials. How come I should convert String to SecureString?

---

<div class="post-metadata">

**Author:** ![Kanak\_Lata\_Singh](https://avatars.discourse-cdn.com/v4/letter/k/c68b51/32.png) [@Kanak\_Lata\_Singh](https://forum.uipath.com/u/Kanak_Lata_Singh)\
**Post date:** [May 21, 2024, 1:55am UTC](https://forum.uipath.com/t/get-secure-credentials/742255/4 "2024-05-21T01:55:44Z")

</div>

Hi @gorby

Please refer this , it might help you .

> [@How to use Get credentials?](https://forum.uipath.com/t/how-to-use-get-credentials/450371/3):
>
> Without invoking any method i want to use the variables or argument?

> **[How To Convert SecureString DataType To String DataType In UiPath - ExcelCult](https://excelcult.com/how-to-convert-securestring-data-type-to-string-data-type-in-uipath/)**
>
> Almost all the processes fetch the credentials from Windows Credentials or Orchestrator. But the Mail activities that the UiPath provide us accepts only the string data type for the password field. Let’s see how to handle it…!!! 1.Fetch username and...

---

<div class="post-metadata">

**Author:** ![Yoichi](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/yoichi/32/523754_2.png) [@Yoichi](https://forum.uipath.com/u/Yoichi)\
**Post date:** [May 21, 2024, 2:49am UTC](https://forum.uipath.com/t/get-secure-credentials/742255/5 "2024-05-21T02:49:03Z")

</div>

こんにちは

資格情報マネージャーで汎用資格情報として、認証情報を登録してみてください

![image](https://global.discourse-cdn.com/uipath/original/4X/6/9/a/69ac8a1edc48b28e8557335f99f1674ab73bf55d.png)

---

<div class="post-metadata">

**Author:** ![gorby](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/gorby/32/543563_2.png) [@gorby](https://forum.uipath.com/u/gorby)\
**Post date:** [May 21, 2024, 2:53am UTC](https://forum.uipath.com/t/get-secure-credentials/742255/6 "2024-05-21T02:53:05Z")

</div>

ありがとうございます。試してみます。もう慣れましたが、さすがUiPath、難解ですね。

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [May 24, 2024, 2:53am UTC](https://forum.uipath.com/t/get-secure-credentials/742255/7 "2024-05-24T02:53:11Z")

</div>

Closed on May 24, 2024, 2:53am UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
