Ahmad ibn Mubarak
Ahmad ibn Mubarak was the seventh Tayyibi Isma'ili" Dāʿī al- Muṭlaq" in Yemen, from 1229 to his death in 1230.
He was the cousin of the fifth" Dāʿī", Ali ibn Muhammad.
He was succeeded by al- Husayn, the son of Ali ibn Muhammad.
Ali ibn Muhammad
Ali ibn Muhammad ibn Idris  was the fourth Idrisid sultan of Morocco.
He was the son of Muhammad ibn Idris whom he succeeded in 836.
He died in 848 CE (Rajab 234 AH) and was succeeded by his brother Yahya I.
Marzuban ibn Muhammad ibn Shaddad
Marzuban ibn Muhammad ibn Shaddad was a Kurdish ruler, the brother of Lashkari ibn Muhammad.
He succeeded his brother to the throne of the Shaddadids in 978.
He was incompetent, however, and reigned only until his murder by his younger brother al- Fadhl ibn Muhammad in 985.
Ali ibn Hatim
Ali ibn Hatim al- Hamidi was the fourth Tayyibi Isma'ili" Dāʿī al- Muṭlaq" in Yemen, from 1199 to his death in 1209.
He was chosen by his father, Hatim ibn Ibrahim, as his successor on the recommendation of Hatim's" maʾdhūn"( the senior deputy to the" Dāʿī"), Ali ibn Muhammad ibn al- Walid, who had been his tutor.
When Hatim died in 1199, Ali succeeded him, still with Ali ibn Muhammad as his" maʾdhūn".
During his tenure he was forced to move the headquarters of the Tayyibi" daʿwa" from the fortress of Hazar to Sanaa, because the Ya'buri family ruling Hazar fell into fratricidal conflict and turned against the Tayyibis.
The Hamdanids of Sanaa welcomed him, and their overlords, the Ayyubids, did not oppose his presence in the city.
Ali died in 1209, and with him ended the Hamidi line.
He was succeeded by Ali ibn Muhammad, who founded the Banu al- Walid al- Anf line of Tayyibi" Dāʿī" s.
Al-Birjandi
Abd Ali ibn Muhammad ibn Husayn Birjandi( died 1528) was a prominent 16th- century Persian astronomer, mathematician and physicist who lived in Birjand.
Garshasp II
Garshasp II( Persian: گرشاسپ), was the last Kakuyid Emir of Yazd and Abarkuh.
He was the son of Ali ibn Faramurz.
Ali ibn al-Husayn (Ibn al-Walid)
Ali ibn al- Husayn ibn Ali ibn Muhammad ibn al- Walid was the ninth Tayyibi Isma'ili" Dāʿī al- Muṭlaq" in Yemen, from 1268 to his death in 1284.
He was the son and chief assistant of the eighth" Dāʿī", al- Husayn ibn Ali, and thus a member of the Banu al- Walid al- Anf family, that dominated the office of" Dāʿī al- Muṭlaq" almost continuously in the 13th to early 16th centuries.
During his tenure, Ali moved from his original seat at Sanaa to the Hamdanid fortress of Arus.
He returned to Sanaa only after it was recaptured by the Hamdanids, and died there.
He was succeeded by Ali ibn al- Husayn ibn Ali ibn Hanzala, the grandson of the sixth" Dāʿī", Ali ibn Hanzala, and son of Ali's own" maʾdhūn"( senior deputy).
Muhammad ibn Idris
Muhammad Ben Idris Al-Thani Ben Idris Al-Awal Ben Abdellah Al-Kamel  known as Muhammad ibn Idris  was one of the sons and successor of Idris II of Morocco.
He took power in 828 and died in 836.
Lashkari ibn Musa
Lashkari Ali ibn Musa ibn Fadl ibn Muhammad ibn Shaddad was the sixth Shaddadid emir, after murdering his father Musa.
Abdullah ibn Muhammad
Abdullah ibn Muhammad also known as Tahir ibn Muhammad(" Tahirclean/ pure") or Tayib ibn Muhammad was one of the sons of Muhammad and Khadija.
Qasim ibn Muhammad was his older brother.
Muhammad gave him the name of his father.
Abdullah died in childhood in 615 CE.

Question: Who is the paternal grandfather of Ali Ibn Muhammad?