SoftadminApi.Credentials_UpdateSecret
					
				
					
						
							Type:
							Stored procedure
						
							Updates the account name and password held by credentials of type Secret.
Used if you build a user interface to let system's users administer its passwords. See the views SoftadminApi.Credentials or SoftadminApi.Credentials_Secret for a list of the credentials that users should be allowed to administer.
See also: SoftadminApi.Credentials_UpdateAccount, SoftadminApi.Credentials_InsertUpdate
 
					 
					
						Parameters
						
							
								
									@CredentialsId
									
										mandatory
									
									uniqueidentifier
								
								
									ID of credentials to update.
									
								
							 
							
								
									@UserId
									
										mandatory
									
									int
								
								
									ID of the user performing the update.
									
								
							 
							
								
									@ClearCache
									
										optional
									
									bit
								
								
									If the procedure should output Cache-columns compatible with NewEdit and Execute, so that the old credential values are removed from the cache. The default is 1.
									
								
							 
							
								
									@SecretEncrypted
									
										optional
									
									varchar(max)
								
								
									The secret, when credentials are stored encrypted in the database. Must be encrypted by a password field with the setting Encrypt as credentials
									
								
							 
							
								
									@SecretAppSetting
									
										optional
									
									varchar(100)
								
								
									The name of an application setting to read the secret from, when credentials are stored in application settings.
									
								
							 
							
								
									@SecretKeyVaultSecret
									
										optional
									
									varchar(100)
								
								
									The name of an key vault secret to read the secret from, when credentials are stored in Azure Key Vault.