User metadata function