Documentation > CMS Template API Library > Asset > ModifiedUserId

ModifiedUserId

The user id of the user who last modified the asset. Use User.Load to get the User object for this id.

Type

System.Int32

Value

The id of the user who last modified this asset

Code Example

C#

Sample:
	Asset myAsset = Asset.Load("/PathTo/Asset");	
	if(myAsset.IsLoaded)
	{
		User usr = User.Load(myAsset.ModifiedUserId);
		if(usr != null)
		{
			Out.WriteLine("Asset modified by: " + usr.Username);
		} 
	}

Connect with Crownpeak