Is having a secondary menu inside a user card anti-pattern?

Example of menu inside the User Profile card as a side nav (contained in a card):

enter image description here

enter image description here

Example of menu on the top (outside card)

enter image description here

enter image description here